@if($records->count())
Travel Records for {{ $client->name }}
@foreach($records as $index => $record) @php $actualExpense = $record->expenses->sum('amount'); $difference = $actualExpense - $record->estimated_cost; @endphp @endforeach
Purpose From To Start End Estimated Cost Status Actions
{{ $record->travel_purpose }} {{ $record->travel_from }} {{ $record->travel_to }} {{ $record->start_date }} {{ $record->end_date }} ₹{{ number_format($record->estimated_cost, 2) }} {{ $record->status }}
Expense Summary

Travel Mode: {{ $record->travel_mode ?? 'N/A' }}

Description: {{ $record->note ?? 'No additional information provided.' }}

₹{{ number_format($actualExpense, 2) }}

₹{{ number_format($difference, 2) }}

Estimated Cost: ₹{{ number_format($record->estimated_cost, 2) }}

@if($record->expenses->count())
Expense Breakdown
@foreach($record->expenses as $expense) @endforeach
Date Description Amount (₹)
{{ $expense->expense_date }} {{ $expense->description }} ₹{{ number_format($expense->amount, 2) }}
@endif
@php $totalDifference = $totalActual - $totalEstimated; @endphp

Expense Report

Total Expense Overview

₹{{ number_format($totalEstimated, 2) }}

Total Estimated Expense

₹{{ number_format($totalActual, 2) }}

Total Actual Expense

₹{{ number_format($totalDifference, 2) }}

{{ $totalDifference > 0 ? 'Over Budget' : 'Under Budget' }}

View Full Report
@else
No travel records found for this client.
@endif