@extends('layout.mainlayout') @section('content')
@foreach ($records as $attendance) @if (auth()->user()->employee_type != '2') @else @endif @endforeach
Applied On Date Range Location Project Type Status Action
{{ $attendance->created_at->format('d M Y') }} {{ \Carbon\Carbon::parse($attendance->start_date)->format('d M Y') }} → {{ \Carbon\Carbon::parse($attendance->end_date)->format('d M Y') }} {{ optional($attendance->location)->name ?? '-' }} {{ $attendance->getForm('location_city', '-') }}, {{ $attendance->getForm('location_country', '-') }}{{ optional($attendance->project)->name ?? '-' }} Attendance @if ($attendance->status_lead === 'approved' && $attendance->status_manager === 'approved') Approved @elseif($attendance->status_lead === 'rejected' || $attendance->status_manager === 'rejected') Rejected @else Pending @endif @if ($attendance->status_lead === 'pending' && $attendance->status_manager === 'pending')
@csrf @method('DELETE')
@endif
@endsection @push('scripts') @endpush