@extends('layouts.print') @section('title', 'Shift Report — ' . $shift->typeLabel() . ' · ' . $shift->started_at->format('M j, Y')) @section('content') @php $variance = $summary['variance']; $propName = $settings['property_name'] ?? config('app.name', 'Parkview Hotel'); $propAddress = $settings['property_address'] ?? ''; $propCity = $settings['property_city'] ?? ''; $propPhone = $settings['property_phone'] ?? ''; $totalCollected = $summary['payments']->sum('amount') + $summary['posTotal']; @endphp
{{ implode(', ', array_filter([$propAddress, $propCity])) }}
@endif @if($propPhone){{ $propPhone }}
@endifShift Report
{{ $shift->typeLabel() }}
{{ $shift->started_at->format('l, F j, Y') }}
Staff
{{ $shift->user->name }}
{{ $shift->user->role?->name ?? '' }}
Time
{{ $shift->started_at->format('g:i A') }}
→ {{ $shift->ended_at?->format('g:i A') ?? 'ongoing' }}
Duration
{{ $shift->duration() }}
Status
{{ $shift->status === 'open' ? 'Active' : 'Closed' }}
None during this shift.
@else| {{ $log->description }} | {{ $log->created_at->format('g:i A') }} |
None during this shift.
@else| {{ $log->description }} | {{ $log->created_at->format('g:i A') }} |
No payments during this shift.
@else| {{ $method }} | ₱{{ number_format($amount, 0) }} |
| POS ({{ $summary['posTxns']->count() }} txn) | ₱{{ number_format($summary['posTotal'], 0) }} |
| Total Collected | ₱{{ number_format($totalCollected, 0) }} |
| Opening float | ₱{{ number_format($shift->opening_cash, 0) }} |
| Cash received (payments) | ₱{{ number_format($summary['cashReceived'], 0) }} |
| Cash from POS | ₱{{ number_format($summary['posCash'], 0) }} |
| Expected on hand | ₱{{ number_format($summary['expectedCashOnHand'], 0) }} |
| Actual count | ₱{{ number_format($shift->closing_cash, 0) }} |
| Variance | {{ $variance >= 0 ? '+' : '' }}₱{{ number_format(abs($variance), 0) }} |
| No closing cash count recorded. | |
| Description | Room | Priority | Time |
|---|---|---|---|
| {{ $wo->description }} | {{ $wo->room_no ? 'Room ' . $wo->room_no : 'Common Area' }} | {{ $wo->priority }} | {{ $wo->created_at->format('g:i A') }} |
{{ $shift->handover_notes }}
@elseNo handover notes recorded.
@endifStaff Signature
{{ $shift->user->name }}
Supervisor / Manager