@extends('layouts.app') @section('title', 'Shift Management') @section('content')

Employees & HR

Shift management

Effective-dated day, night, split and flexible schedules with employee, department and branch assignment history.

Open attendance
@if(auth()->check() && auth()->user()->hasPermission('shifts.manage'))

Create a shift

@csrf
@foreach(['monday','tuesday','wednesday','thursday','friday','saturday','sunday'] as $day)@endforeach
@endif
@forelse($shifts as $shift)

{{ $shift->name }}

{{ $shift->is_active ? 'Active' : 'Inactive' }}

{{ $shift->code }} · {{ ucfirst($shift->type) }} · {{ $shift->start_time ?: 'Flexible' }}–{{ $shift->end_time ?: 'Flexible' }} · {{ $shift->break_minutes }} min break

{{ $shift->assignments->count() }} assignment(s){{ $shift->grace_minutes }} min graceOT × {{ $shift->overtime_multiplier }}
@if(auth()->check() && auth()->user()->hasPermission('shifts.manage'))
@csrf
@endif @if($shift->assignments->isNotEmpty())
@foreach($shift->assignments->take(12) as $assignment){{ $assignment->employee?->full_name ?? $assignment->department?->name ?? $assignment->branch?->name }} · from {{ $assignment->effective_from->format('d M Y') }}@endforeach
@endif
@empty

No shifts configured

Create the first working schedule to connect attendance and overtime calculations.

@endforelse {{ $shifts->links() }}
@endsection