@section('page-title', 'Personnel Attendance List') @if(auth()->user()?->canModule('budgeting', 'create'))
Buat Daftar Absensi
@endif @if(session('success'))
{{ session('success') }}
@endif {{-- Filter --}}
@if(request()->hasAny(['search', 'jenis', 'tanggal'])) Reset @endif
{{-- Tabel --}}
@forelse($attendances as $a) @empty @endforelse
No Tanggal Jenis Planning / Vessel Personel Total Jam Total Fee Keterangan Aksi
{{ $attendances->firstItem() + $loop->index }} {{ $a->tanggal?->format('d/m/Y') }} @php $badgeClass = match($a->jenis) { 'Delivery' => 'bg-amber-100 text-amber-800 border-amber-200', 'Heavy Cargo' => 'bg-purple-100 text-purple-800 border-purple-200', 'TKBM' => 'bg-emerald-100 text-emerald-800 border-emerald-200', default => 'bg-blue-100 text-blue-800 border-blue-200', }; @endphp {{ $a->jenis }} @if($a->planning)

{{ $a->planning->nama_kapal ?: $a->planning->vessel ?: '-' }}

{{ $a->planning->no_planning }}

@else - @endif
{{ $a->items->count() }} {{ $a->total_jam_formatted }} {{ $a->total_fee_formatted }} {{ $a->keterangan ?: '-' }}
@if(auth()->user()?->canModule('budgeting', 'edit')) @endif @if(auth()->user()?->canModule('budgeting', 'delete'))
@csrf @method('DELETE')
@endif

Belum ada daftar absensi personel

Klik "Buat Daftar Absensi" untuk mulai mencatat.

@if($attendances->hasPages())
{{ $attendances->links() }}
@endif