@extends('dashboard.layouts.app') @section('content') @include('components.alert') @php $activeFiltersCount = collect([request('search'), request('per_page')]) ->filter(fn($value) => filled($value)) ->count(); @endphp
Filters
@forelse($shiftEmps as $shiftEmp) {{ $shiftEmp->id }}
{{ $shiftEmp->name }}
{{ \Carbon\Carbon::parse($shiftEmp->work_from)->format('h:i A') }}
{{ \Carbon\Carbon::parse($shiftEmp->work_to)->format('h:i A') }}
@if (optional($shiftEmp->createdBy)->full_name)
{{ strtoupper(substr(optional($shiftEmp->createdBy)->full_name, 0, 2)) }}
{{ optional($shiftEmp->createdBy)->full_name }}
@else — @endif
{{ $shiftEmp->created_at?->format('Y-m-d') ?? '—' }}
@if ($shiftEmp->created_at) {{ $shiftEmp->created_at->diffForHumans() }} @endif
@empty @endforelse
{{-- CREATE MODAL --}} {{-- EDIT MODAL --}} {{-- DELETE MODAL --}} @endsection @push('styles') @endpush @push('scripts') @endpush