@extends('layouts.app') @section('title', 'Shift Details') @section('subtitle', 'View shift information and assigned employees') @section('content')
Back to Shifts

{{ $shift->name }}

{{ date('g:i A', strtotime($shift->start_time)) }} - {{ date('g:i A', strtotime($shift->end_time)) }}

Duration: {{ $shift->duration_in_hours }} hours

Edit
@csrf @method('DELETE')

Shift Information

{{ $shift->name }}

@if($shift->is_active) Active @else Inactive @endif

{{ date('g:i A', strtotime($shift->start_time)) }}

{{ date('g:i A', strtotime($shift->end_time)) }}

{{ $shift->break_duration_minutes }} minutes

{{ $shift->duration_in_hours }} hours

@if($shift->description)

{{ $shift->description }}

@endif

Assigned Employees ({{ $shift->users->count() }})

@if($shift->users->count() > 0)
@foreach($shift->users as $user)
@if($user->image) {{ $user->first_name }} @else
{{ $user->initials }}
@endif

{{ $user->full_name }}

{{ $user->employee_id }} • {{ $user->position }}

{{ ucfirst($user->status) }}
@endforeach
@else

No employees assigned to this shift

@endif

Quick Stats

Total Employees {{ $shift->users->count() }}
Active Employees {{ $shift->users->where('status', 'active')->count() }}
Shift Duration {{ $shift->duration_in_hours }}h
Break Time {{ $shift->break_duration_minutes }}m

Time Schedule

Start Time {{ date('g:i A', strtotime($shift->start_time)) }}
End Time {{ date('g:i A', strtotime($shift->end_time)) }}
Working Hours {{ $shift->duration_in_hours }}h
Break Duration {{ $shift->break_duration_minutes }}m

Quick Actions

Add Employee

Recent Activity

{{ $shift->users->where('created_at', '>=', now()->subDays(30))->count() }} new employees this month
Last updated: {{ $shift->updated_at->diffForHumans() }}
@endsection