@extends('templates.app') @section('container')
@csrf
@php $izin_cuti = $data_user->izin_cuti; $izin_lainnya = $data_user->izin_lainnya; $izin_telat = $data_user->izin_telat; $izin_pulang_cepat = $data_user->izin_pulang_cepat; $data_cuti = array( [ 'nama' => 'Cuti', 'nama_cuti' => 'Cuti ('.$izin_cuti.')' ], [ 'nama' => 'Izin Masuk', 'nama_cuti' => 'Izin Masuk ('.$izin_lainnya.')' ], [ 'nama' => 'Izin Telat', 'nama_cuti' => 'Izin Telat ('.$izin_telat.')' ], [ 'nama' => 'Izin Pulang Cepat', 'nama_cuti' => 'Izin Pulang Cepat ('.$izin_pulang_cepat.')' ] ); @endphp @error('nama_cuti')
{{ $message }}
@enderror
@error('tanggal_mulai')
{{ $message }}
@enderror
@error('tanggal_akhir')
{{ $message }}
@enderror
@error('foto_cuti')
{{ $message }}
@enderror
@error('alasan_cuti')
{{ $message }}
@enderror
@foreach ($data_cuti_user as $dcu) @endforeach
No. Nama Pegawai Nama Cuti Tanggal Alasan Cuti Foto Cuti Status Cuti Catatan Actions
{{ $loop->iteration }} {{ $dcu->User->name }} {{ $dcu->nama_cuti }} {{ $dcu->tanggal}} {{ $dcu->alasan_cuti}} @if($dcu->status_cuti == "Diterima") {{ $dcu->status_cuti }} @elseif($dcu->status_cuti == "Ditolak") {{ $dcu->status_cuti }} @else {{ $dcu->status_cuti }} @endif {{ $dcu->catatan }}
@if($dcu->status_cuti == "Diterima") Sudah Approve @else @endif @if($dcu->status_cuti == "Diterima") Sudah Approve @else
@method('delete') @csrf
@endif
{{ $data_cuti_user->links() }}




@push('script') @endpush @endsection