@extends('crm.layouts.app')
@section('title', 'Deposit')
@section('content')
{{ ucfirst($deposit->status) }}
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
@foreach($errors->all() as $error)- {{ $error }}
@endforeach
@endif
@foreach([
'Taken' => $deposit->paid_at?->format('M j, Y'),
'Method' => ucfirst(str_replace('_', ' ', $deposit->payment_method ?? '')),
'Reference' => $deposit->payment_reference,
'Refunded so far' => '$'.number_format($deposit->refund_amount ?? 0, 2),
'Outstanding' => '$'.number_format($deposit->outstanding_amount, 2),
'Refunded on' => $deposit->refunded_at?->format('M j, Y'),
] as $label => $value)
- {{ $label }}
- {{ $value ?: '—' }}
@endforeach
@if($deposit->notes)
Notes
{{ $deposit->notes }}
@endif
@if($deposit->outstanding_amount > 0 && $deposit->status !== 'forfeited')
@endif
@endsection