@extends('layouts.layoutMaster') @section('title', __('Edit Timesheet')) @section('vendor-style') @vite(['resources/assets/vendor/libs/select2/select2.scss']) @vite(['resources/assets/vendor/libs/flatpickr/flatpickr.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/select2/select2.js']) @vite(['resources/assets/vendor/libs/flatpickr/flatpickr.js']) @endsection @section('page-script') @vite(['Modules/PMCore/resources/assets/js/timesheets-edit.js']) @endsection @section('content')
{{ __('Edit Timesheet Entry') }}
@if($timesheet->status !== \Modules\PMCore\App\Enums\TimesheetStatus::DRAFT)
{{ __('This timesheet has been :status and cannot be edited.', ['status' => strtolower($timesheet->status->label())]) }}
@endif
@csrf @method('PUT')
{{ __('Enter time in hours (e.g., 1.5 for 1 hour 30 minutes)') }}
is_billable ? 'checked' : '' }}>
$ {{ __('/hour') }}
{{ __('Leave empty to use project default rate') }}
$ {{ __('/hour') }}
{{ __('Internal cost rate for this time') }}
{{ __('Status') }}: {!! $timesheet->status_badge !!} @if($timesheet->approved_by_id) {{ __('by :name on :date', [ 'name' => $timesheet->approvedBy->name, 'date' => $timesheet->approved_at->format('M d, Y') ]) }} @endif
@if($timesheet->canBeEditedBy(auth()->user()))
{{ __('Cancel') }}
@else {{ __('Back to List') }} @endif
@endsection