@extends('templates.dashboard') @section('isi')

{{ $title }}

@foreach ($data_absen as $da) @endforeach
No. Nama Pegawai Shift Tanggal Jam Masuk Telat Lokasi Masuk Foto Masuk Keterangan Masuk Jam Pulang Pulang Cepat Lokasi Pulang Foto Pulang Keterangan Pulang Status Absen Actions
{{ $loop->iteration }} {{ $da->name }} @if ($da->Shift) {{ $da->Shift->nama_shift }} ({{ $da->Shift->jam_masuk }} - {{ $da->Shift->jam_keluar }}) @else - @endif {{ $da->tanggal ?? '-' }} @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @else {{ $da->jam_absen }} @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->status_absen == 'Izin Telat') Izin Telat @elseif($da->jam_absen == null) Belum Absen @else @if($jam <= 0 && $menit2 <= 0) Tepat Waktu @else {{ $jam." Jam ".$menit2." Menit" }} @endif @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @else @php $jarak_masuk = explode(".", $da->jarak_masuk); @endphp Lihat {{ $jarak_masuk[0] }} Meter @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @else @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @else {{ $da->keterangan_masuk }} @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @elseif($da->jam_pulang == null) Belum Pulang @else {{ $da->jam_pulang }} @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->status_absen == 'Izin Pulang Cepat') Izin Pulang Cepat @elseif($da->jam_absen == null) Belum Absen @elseif($da->jam_pulang == null) Belum Pulang @else @if($jam <= 0 && $menit2 <= 0) Tidak Pulang Cepat @else {{ $jam." Jam ".$menit2." Menit" }} @endif @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @elseif($da->jam_pulang == null) Belum Pulang @else @php $jarak_pulang = explode(".", $da->jarak_pulang); @endphp Lihat {{ $jarak_pulang[0] }} Meter @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @elseif($da->jam_pulang == null) Belum Pulang @else @endif @if($da->status_absen == 'Libur') Libur @elseif($da->status_absen == 'Cuti') Sedang Izin @elseif($da->jam_absen == null) Belum Absen @elseif($da->jam_pulang == null) Belum Pulang @else {{ $da->keterangan_pulang }} @endif @if($da->status_absen == 'Libur') {{ $da->status_absen }} @elseif($da->status_absen == 'Cuti' || $da->status_absen == 'Izin Telat' || $da->status_absen == 'Izin Pulang Cepat') {{ $da->status_absen }} @elseif($da->status_absen == 'Masuk') {{ $da->status_absen }} @else {{ $da->status_absen }} @endif
    @if($da->status_absen == 'Libur')
  • Libur
  • @elseif($da->status_absen == 'Cuti')
  • Sedang Izin
  • @else @if ($da->id)
  • Edit Masuk
  • @endif @endif @if($da->status_absen == 'Libur')
  • Libur
  • @elseif($da->status_absen == 'Cuti')
  • Sedang Izin
  • @elseif($da->jam_absen == null)
  • Belum Masuk
  • @else @if ($da->id)
  • Edit Pulang
  • @endif @endif @if ($da->id)
  • @method('delete') @csrf
  • @endif
{{ $data_absen->links() }}
@push('script') @endpush @endsection