@extends('layouts.app') @section('title', 'Timesheets') @section('content')
| Date | User | Project | Task | Hours | Status | Actions | |
|---|---|---|---|---|---|---|---|
| @if($timesheet->status == 'unbilled') @endif | {{ \Carbon\Carbon::parse($timesheet->date)->format('d M Y') }} | {{ optional($timesheet->user)->name ?? 'Unknown User' }} | {{ optional($timesheet->project)->name ?? 'No Project' }} | {{ optional($timesheet->task)->name ?? 'No Task' }} | {{ number_format($timesheet->hours, 2) }} | @php $statusColors = [ 'unbilled' => 'bg-warning text-dark', 'billed' => 'bg-success', ]; @endphp {{ ucfirst($timesheet->status) }} | |
|
No time entries found. Add Time Entry |
|||||||