@extends('layouts.report-print') @section('content')
{{ __('Total Employees') }}: {{ $employees->count() }} {{ __('Date') }}: {{ now()->format('Y-m-d') }}
@foreach($employees as $e) @endforeach @if($employees->isEmpty()) @endif
{{ __('Code') }} {{ __('Name') }} {{ __('Department') }} {{ __('Position') }} {{ __('Joining Date') }} {{ __('Iqama Expiry') }} {{ __('Status') }}
{{ $e->employee_code }} {{ $e->first_name }} {{ $e->last_name }} {{ optional($e->department)->name }} {{ optional($e->designation)->name }} {{ $e->joining_date ? $e->joining_date->format('Y-m-d') : '' }} @if($e->iqama_expiry_date) @php $days = now()->diffInDays($e->iqama_expiry_date, false); @endphp {{ $e->iqama_expiry_date->format('Y-m-d') }} @if($days < 0) (Expired) @elseif($days <= 30) (Expiring Soon) @endif @endif {{ ucfirst($e->status) }}
{{ __('No employees found.') }}
@endsection