
{{ Form::open(['url' => route('timesheet.store'), 'id' => 'project_form', 'class'=>'needs-validation', 'novalidate']) }}
<div class="modal-body">


    <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>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="form-group mb-0">
                <label for="time">{{ __('Time')}}</label><x-required></x-required>
            </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-md-12">
        <div class="display-total-time">
            <i class="ti ti-clock"></i>
            <span>{{ __('Total Time worked on this task') }} : {{ $parseArray['totaltaskhour'] . ' ' . __('Hours') . ' ' . $parseArray['totaltaskminute'] . ' ' . __('Minutes') }}</span>

        </div>
    </div>

</div>


<div class="modal-footer">
    <input type="submit" value="{{ __('Save') }}" class="btn btn-primary">
</div>
{{ Form::close() }}

