@extends('layouts.app') @section('title', 'Shifts') @section('subtitle', 'Manage work shifts and schedules') @section('content')
{{ session('success') }}
{{ session('error') }}
Total Shifts
{{ \App\Models\Shift::count() }}
Active
{{ \App\Models\Shift::where('is_active', true)->count() }}
Total Employees
{{ \App\Models\User::count() }}
Current Shift
{{ \App\Models\Shift::where('is_active', true)->first()->name ?? 'N/A' }}
| Shift | Employees | Status | Actions | |||
|---|---|---|---|---|---|---|
|
{{ $shift->name }}
{{ $shift->description ? Str::limit($shift->description, 50) : 'No description' }}
|
{{ $shift->users_count }} | @if($shift->is_active) Active @else Inactive @endif | ||||
|
No shifts found Start by creating your first shift |
||||||