@extends('layout.mainlayout') @section('content')
{{-- FILTERS --}}
{{-- TABLE --}}
@forelse($requests as $r) @php $testingStart = $r->getForm('testing_start_time') ?? '-'; $testingEnd = $r->getForm('testing_end_time') ?? '-'; $testingTime = $testingStart !== '-' && $testingEnd !== '-' ? "{$testingStart} - {$testingEnd}" : '-'; $testingHours = $r->getForm('testing_hours') ?? '-'; $mobilityHours = $r->getForm('mobility_hours') ?? '-'; $mobility = strtolower($r->getForm('mobility') ?? 'no') === 'yes' ? 'Yes' : 'No'; $city = $r->getForm('location_city') ?? '-'; $country = $r->getForm('location_country') ?? '-'; $halfDay = strtolower($r->getForm('half_day') ?? 'no') === 'yes' ? 'Yes' : 'No'; $productName = $r->getForm('product_name') ?? '-'; @endphp @empty @endforelse
Name Applied On Date Range Type Testing Time Testing Hours Mobility Hours Mobility City Country Half Day Product Lead Status Manager Status Final
{{ $r->overseasResource?->first_name }} {{ $r->overseasResource?->last_name }}
{{ $r->overseasResource?->professional_email ?? '-' }}
{{ $r->created_at?->format('d M Y H:i') }} {{ \Carbon\Carbon::parse($r->start_date)->format('d M Y') }} → {{ \Carbon\Carbon::parse($r->end_date)->format('d M Y') }} {{ ucfirst($r->attendance_type) }} {{ $testingTime }} {{ $testingHours }} {{ $mobilityHours }} @if ($mobility === 'Yes') Yes @else No @endif {{ $city }} {{ $country }} @if ($halfDay === 'Yes') Yes @else No @endif {{ $productName }} @if ($r->status_lead === 'approved') Approved @elseif($r->status_lead === 'rejected') Rejected @else Pending @endif @if ($r->status_manager === 'approved') Approved @elseif($r->status_manager === 'rejected') Rejected @else Pending @endif @if ($r->final_status === 'approved') Approved @elseif($r->final_status === 'rejected') Rejected @else Pending @endif
No overseas attendance requests found
{{ $requests->links('vendor.pagination.no-arrows') }}
@endsection @push('scripts') @endpush