@extends('layouts.app') @section('title', 'Weekly Timesheet Report') @section('breadcrumb')Reports Weekly Timesheet@endsection @section('content')
Hours and earnings summary for all hourly staff
| Staff Member | Role | Entries | Hours | Rate | Earnings | Invoiced | Uninvoiced |
|---|---|---|---|---|---|---|---|
|
{{ collect(explode(' ', $s['name']))->map(fn($p)=>substr($p,0,1))->take(2)->join('') }}
{{ $s['name'] }}
{{ $s['email'] }}
|
{{ $s['role'] }} | {{ $s['entries'] }} | {{ number_format($s['hours'], 2) }}h | ${{ number_format($s['rate'], 2) }}/hr | ${{ number_format($s['earnings'], 2) }} | @if($s['invoiced_hours'] > 0) {{ number_format($s['invoiced_hours'], 1) }}h @else — @endif | @if($uninv > 0) {{ number_format($uninv, 1) }}h @elseif($s['hours'] > 0) All invoiced @else — @endif |
| No staff with hourly rates found. | |||||||
| TOTAL | {{ number_format($totalHours, 2) }}h | ${{ number_format($totalEarnings, 2) }} | {{ number_format(collect($staffSummaries)->sum('invoiced_hours'), 1) }}h | {{ number_format($uninvoicedHours, 1) }}h | |||