@extends('layouts.app') @section('title', 'All Shifts') @section('content')

All Shifts

Filters

@forelse($shifts as $shift) @empty @endforelse
Shift # Cashier Clock In Clock Out Duration Total Sales Status Actions
{{ $shift->shift_number }} {{ $shift->user->name }} {{ $shift->clock_in_at->format('M d, Y h:i A') }} {{ $shift->clock_out_at ? $shift->clock_out_at->format('M d, Y h:i A') : 'Active' }} {{ $shift->getFormattedDuration() }} ${{ number_format($shift->total_sales, 2) }} {{ ucfirst($shift->status->value) }} View @can('approve shifts') @if($shift->status->value === 'completed')
@csrf
@endif @endcan
No shifts found
@if($shifts->hasPages())
{{ $shifts->links() }}
@endif
@endsection