@extends('layouts.employee') @section('page-title', $currentMonthLabel . ' Claims') @section('page-subtitle', 'Manage your current travel expenses') @section('content')

{{ $currentMonthLabel }}

Submission Window: {{ $monthStart->format('d M') }} - {{ $cutoffDate->format('d M') }} @if($today->gt($cutoffDate)) Window Closed @else Active @endif

View History @if($totals['draft'] > 0 && $today->lte($cutoffDate))
@csrf
@endif @if($today->lte($cutoffDate)) New Entry @endif

Submitted

₹{{ number_format($totals['submitted']) }}

Draft

₹{{ number_format($totals['draft']) }}

Total Claims

₹{{ number_format($totals['submitted'] + $totals['draft']) }}

@if($conveyances->isEmpty())

No entries yet

Start by adding your first conveyance claim for this month.

@if($today->lte($cutoffDate)) + Add Entry @endif
@else
@foreach($conveyances as $c) @php $rowTotal = $c->total_amount; // Allow edit/delete if within window, regardless of status (draft OR submitted) $canEdit = $today->lte($cutoffDate); @endphp @endforeach
Date Route / Mode Client / Purpose Amount Return Status Actions
{{ $c->date->format('d M') }}
{{ $c->date->format('D') }}
{{ $c->from_location }} {{ $c->to_location }}
{{ $c->mode }}
@if($c->client)
{{ $c->client->name }}
@else
No Client
@endif @if($c->remarks)
{{ $c->remarks }}
@endif
₹{{ number_format($rowTotal, 2) }} @if($c->is_return)
@if($c->return_amount)
Custom
@endif @else @endif
@if($c->status === 'draft') Draft @else Submitted @endif @if($canEdit)
@csrf @method('DELETE')
@else Locked @endif
@endif
@endsection