Timesheet Management

Create and manage timesheet entries across all matters

@if(auth()->user()->canCreateTimesheets()) @endif

Filters

@if($showForm)

{{ $editingTimesheet ? 'Edit Timesheet Entry' : 'Create New Timesheet Entry' }}

@error('matter_id') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
@error('time_spent') {{ $message }} @enderror
@error('date') {{ $message }} @enderror

Hourly rate is set by system configuration

@if($time_spent && $hourly_rate)
Estimated Cost: €{{ number_format($time_spent * $hourly_rate, 2) }}
@endif @if($time_spent && $matter_id) @php $matter = $matters->firstWhere('id', $matter_id); $newTotalHours = $matter ? $matter->total_actual_hours + $time_spent : 0; $willExceed = $matter && $newTotalHours > $matter->total_estimated_hours && $matter->total_estimated_hours > 0; $exceededAmount = $willExceed ? $newTotalHours - $matter->total_estimated_hours : 0; @endphp @if($willExceed)
Warning: Adding {{ number_format($time_spent, 2) }} hours will exceed the estimated hours by {{ number_format($exceededAmount, 2) }} hours.
Current: {{ number_format($matter->total_actual_hours, 2) }}h | Estimated: {{ number_format($matter->total_estimated_hours, 2) }}h | After adding: {{ number_format($newTotalHours, 2) }}h
@elseif($matter && $newTotalHours > ($matter->total_estimated_hours * 0.8) && $matter->total_estimated_hours > 0)
Notice: Adding {{ number_format($time_spent, 2) }} hours will use {{ number_format(($newTotalHours / $matter->total_estimated_hours) * 100, 1) }}% of estimated hours.
Remaining after adding: {{ number_format($matter->total_estimated_hours - $newTotalHours, 2) }}h
@endif @endif
@endif

Recent Timesheet Entries

@if($timesheets->count() > 0)
@foreach($timesheets as $timesheet) @endforeach
Description Time Matter User Actions
{{ $timesheet->description }}
{{ $timesheet->formatted_time_spent }} {{ $timesheet->matter->subject }} {{ $timesheet->createdBy->name }}
@if(auth()->user()->canUpdateTimesheets()) @endif @if(auth()->user()->canDeleteTimesheets()) @endif
Total {{ number_format($timesheets->sum('time_spent'), 2) }}h
{{ $timesheets->links() }}
@else

No timesheets found

Get started by creating your first timesheet entry.

@if(auth()->user()->canCreateTimesheets())
@endif
@endif
@if (session()->has('message'))
{{ session('message') }}
@endif