@extends('layouts.app') @section('title', 'Invoice '.$staffInvoice->invoice_number) @section('breadcrumb')Staff Invoices {{ $staffInvoice->invoice_number }}@endsection @section('content') @php $isAdminOrAccounts = in_array(auth()->user()->role?->name, ['office_admin','accounts']); @endphp
{{ $staffInvoice->period_start->format('d M Y') }} – {{ $staffInvoice->period_end->format('d M Y') }}
| Date | Task | Job | Duration | Amount |
|---|---|---|---|---|
| {{ $entry->started_at->format('d M H:i') }} | {{ $entry->taskType?->name ?? '—' }} | {{ $entry->job?->job_number ?? '—' }} | {{ $entry->elapsed }} | ${{ number_format($entry->duration_hours * $staffInvoice->hourly_rate, 2) }} |
| Total | {{ number_format($staffInvoice->total_hours, 2) }}h | ${{ number_format($staffInvoice->total_amount, 2) }} | ||
Review the time entries above and approve or reject this invoice.