JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Timesheet') }} @endsection @section('breadcrumb') @endsection @section('action-button') @can('Create TimeSheet') @endcan @endsection @section('content') {{--
{{ Form::open(['route' => ['timesheet.index'], 'method' => 'get', 'id' => 'timesheet_filter']) }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-label']) }} {{ Form::date('start_date', isset($_GET['start_date']) ? $_GET['start_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off', 'id' => 'current_date']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date', isset($_GET['end_date']) ? $_GET['end_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off', 'id' => 'current_date']) }}
@if (\Auth::user()->type == 'employee') {!! Form::hidden('employee', !empty($employeesList) ? $employeesList->id : 0, ['id' => 'employee_id']) !!} @else
{{ Form::label('employee', __('Employee'), ['class' => 'form-label']) }} {{ Form::select('employee', $employeesList, isset($_GET['employee']) ? $_GET['employee'] : '', ['class' => 'form-control select ', 'id' => 'employee_id']) }}
@endif
{{ Form::close() }}
--}}
{{ Form::open(['route' => ['timesheet.index'], 'method' => 'get', 'id' => 'timesheet_filter']) }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-label']) }} {{ Form::date('start_date', isset($_GET['start_date']) ? $_GET['start_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off', 'id' => 'current_date']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date', isset($_GET['end_date']) ? $_GET['end_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off', 'id' => 'current_date']) }}
@if (\Auth::user()->type == 'employee') {!! Form::hidden('employee', !empty($employeesList) ? $employeesList->id : 0, ['id' => 'employee_id']) !!} @else {{ Form::label('employee', __('Employee'), ['class' => 'form-label']) }} {{ Form::select('employee', $employeesList, isset($_GET['employee']) ? $_GET['employee'] : '', ['class' => 'form-control select ', 'id' => 'employee_id']) }} @endif
{{ Form::close() }}
{{--
--}}
@if (\Auth::user()->type != 'employee') @endif @foreach ($timeSheets as $timeSheet) @if (\Auth::user()->type != 'employee') @endif @endforeach
{{ __('Employee') }}{{ __('Date') }} {{ __('Hours') }} {{ __('Remark') }} {{ __('Action') }}
{{ !empty($timeSheet->employee) ? $timeSheet->employee->name : '' }} {{ \Auth::user()->dateFormat($timeSheet->date) }} {{ $timeSheet->hours }} {{ $timeSheet->remark }} @can('Edit TimeSheet') @endcan @can('Delete TimeSheet')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['timesheet.destroy', $timeSheet->id], 'id' => 'delete-form-' . $timeSheet->id, ]) !!}
@endcan
@endsection @push('script-page') @endpush