{{-- resources/views/admin/conveyance/exports/employee_month_full.blade.php --}} {{-- This view is for ONE month, used as ONE sheet by EmployeeConveyanceMonthFullExport --}} @foreach($month['rows'] as $row) @php $onward = (float) $row->amount; $return = 0.0; if ($row->is_return) { $return = $row->return_amount !== null ? (float) $row->return_amount : $onward; } $total = $onward + $return; @endphp @endforeach
Employee Conveyance – {{ $employee->name }} – {{ $month['label'] }}
Date Day From To Client Mode Onward Return Total Remarks
{{ $row->date->format('d M Y') }} {{ $row->date->format('D') }} {{ $row->from_location }} {{ $row->to_location }} {{ optional($row->client)->name }} {{ $row->mode }} {{ $onward }} @if($row->is_return) {{ $return }} @if($row->return_amount !== null && (float)$row->return_amount !== $onward) R* @endif @endif {{ $total }} {{ $row->remarks }}