{{ $expense->title }}

{{ $expense->expense_number }} • {{ $expense->expense_date->format('d M Y') }}

{{ $expense->status_label }} {{ $expense->payment_status_label }}
@if($expense->canBeEdited()) Edit @endif @if($expense->canBeSubmitted())
@csrf
@endif @can('expense.approve') @if($expense->canBeApproved())
@csrf
@endif @endcan @can('expense.pay') @if($expense->canBePaid()) Process Payment @endif @endcan {{-- PDF Print Button - Show for approved/paid expenses --}} @if(in_array($expense->status, ['approved', 'paid'])) Download PDF View PDF @endif
@if($expense->status === 'rejected' && $expense->rejection_reason)
Rejection Reason

{{ $expense->rejection_reason }}

@endif
Expense Details
Category
{{ $expense->category?->name ?? '-' }}
@if($expense->project_id)
Project
{{ $expense->project_title ?? '-' }}
@endif
Unit Price
₹{{ number_format($expense->unit_price, 2) }}
Quantity
{{ number_format($expense->quantity, 2) }} {{ $expense->unit?->symbol ?? 'pcs' }}
Subtotal
₹{{ number_format($expense->subtotal, 2) }}
@if($expense->tax_amount > 0)
Tax ({{ $expense->tax_rate }}%)
₹{{ number_format($expense->tax_amount, 2) }}
@endif
Vendor
{{ $expense->vendor ?? '-' }}
Reference No.
{{ $expense->reference_no ?? '-' }}
Paid By
{{ ucfirst($expense->paid_by) }}
@if($expense->notes)
Notes
{{ $expense->notes }}
@endif
Assignment
Employee
{{ $expense->employee?->name ?? '-' }}
Manager
{{ $expense->manager?->name ?? '-' }}
Created By
{{ $expense->createdByAdmin?->name ?? '-' }}
@if($expense->approved_by)
{{ $expense->status === 'rejected' ? 'Rejected By' : 'Approved By' }}
{{ $expense->approvedByAdmin?->name ?? '-' }} {{ $expense->approved_at?->format('d M Y H:i') }}
@endif
@if($expense->attachments->count() > 0)
Attachments ({{ $expense->attachments->count() }})
@foreach($expense->attachments as $attachment)
@if($attachment->is_image) @else @endif
{{ $attachment->original_name }}
{{ $attachment->formatted_file_size }}
View
@endforeach
@endif @if($expense->payments->count() > 0)
Payment History
@foreach($expense->payments as $payment) @endforeach
Reference Date Method Amount Processed By
{{ $payment->payment_reference }} {{ $payment->payment_date->format('d M Y') }} {{ $payment->paymentMethod?->name ?? '-' }} ₹{{ number_format($payment->amount, 2) }} {{ $payment->createdByAdmin?->name ?? '-' }}
@endif
Total Amount
₹{{ number_format($expense->amount, 2) }}
₹{{ number_format($expense->total_paid, 2) }}
Paid
₹{{ number_format($expense->remaining_balance, 2) }}
Balance
Activity
    @forelse($expense->activityLogs->take(10) as $log)
  • {{ $log->action_label }}
    {{ $log->createdByAdmin?->name ?? 'System' }} • {{ $log->created_at->diffForHumans() }}
  • @empty
  • No activity yet
  • @endforelse