<div class="card bg-none card-box">
{{ Form::open(['url' => route('timesheet.store'), 'id' => 'project_form']) }}

<input type="hidden" name="project_id" value="{{ $parseArray['project_id'] }}">
<input type="hidden" name="task_id" value="{{ $parseArray['task_id'] }}">
<input type="hidden" name="date" value="{{ $parseArray['date'] }}">
<input type="hidden" id="totaltasktime" value="{{ $parseArray['totaltaskhour'] . ':' . $parseArray['totaltaskminute'] }}">

<div class="details mb-2">
    <div class="form-group text-center">
        <label for="descriptions" class="form-label">{{ $parseArray['project_name'] . ' : ' . $parseArray['task_name'] }}</label>
        <small class="form-text text-muted mb-2 mt-0">{{ __('Total Time worked on this task') }} : {{ $parseArray['totaltaskhour'] . ' ' . __('Hours') . ' ' . $parseArray['totaltaskminute'] . ' ' . __('Minutes') }}</small>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <div class="form-group mb-0">
            <label for="time">{{ __('Time')}}</label>
        </div>
    </div>
    <div class="col-md-6">
        <div class="form-group">
            <select class="form-control  select2" name="time_hour" id="time_hour" required="">
                <option value="">{{ __('Hours') }}</option>

                <?php for ($i = 0; $i < 23; $i++) { $i = $i < 10 ? '0' . $i : $i; ?>

                <option value="{{ $i }}">{{ $i }}</option>

                <?php } ?>

            </select>
        </div>
    </div>

    <div class="col-md-6">
        <div class="form-group">
            <select class="form-control form-control-light" name="time_minute" id="time_minute" required>
                <option value="">{{ __('Minutes')}}</option>

                <?php for ($i = 0; $i < 61; $i += 10) { $i = $i < 10 ? '0' . $i : $i; ?>

                <option value="{{ $i }}">{{ $i }}</option>

                <?php } ?>

            </select>
        </div>
    </div>
</div>

<div class="form-group">
    <label for="description">{{ __('Description')}}</label>
    <textarea class="form-control form-control-light" id="description" rows="3" name="description"></textarea>
</div>

<div class="col-12 text-end">
    <input type="submit" value="{{__('Save')}}" class="btn-create badge-blue">
</div>
{{ Form::close() }}
</div>
