Date Range:
{{ \Carbon\Carbon::parse($attendance->start_date)->format('d M Y') }}
→
{{ \Carbon\Carbon::parse($attendance->end_date)->format('d M Y') }}
Status:
{{ ucfirst($attendance->final_status) }}
Project:
{{ optional($attendance->project)->name ?? '-' }}
Product Name:
{{ $attendance->getForm('product_name', '-') }}
Project Lead:
{{ optional($attendance->projectLead)->name ?? '-' }}
Manager:
{{ optional($attendance->manager)->name ?? '-' }}
{{-- INTERNATIONAL --}}
@if (auth()->user()->employee_type == '2')
Testing Start Time:
{{ $attendance->getForm('testing_start_time', '-') }}
Testing End Time:
{{ $attendance->getForm('testing_end_time', '-') }}
Testing Hours:
{{ $attendance->testing_hours }}
Mobility Hours:
{{ $attendance->getForm('mobility_hours', '-') }}
Use Personal car:
{{ $attendance->getForm('personal_car') === 'yes' ? 'Yes' : 'No' }}
Half Day:
{{ strtolower($attendance->getForm('half_day')) === 'yes' ? 'Yes' : 'No' }}
Location:
{{ $attendance->getForm('location_city', '-') }},
{{ $attendance->getForm('location_country', '-') }}
@endif
{{-- DOMESTIC / ONSITE --}}
@if (in_array(auth()->user()->employee_type, ['1', '3']))
Location:
{{ optional($attendance->location)->name ?? '-' }}
Local Lead:
{{ optional($attendance->localLead)->name ?? '-' }}
Travelling:
{{ $attendance->is_travelling ? 'Yes' : 'No' }}
@endif
Remark:
{{ $attendance->getForm('remark', '-') }}