@extends('crm.layouts.app') @section('title', 'Deposit') @section('content')
← All deposits

${{ number_format($deposit->amount, 2) }} deposit

{{ $deposit->appointment?->client?->name ?? 'Client' }} · {{ $deposit->appointment?->scheduled_at?->format('M j, Y \a\t g:i A') ?? 'appointment' }}

{{ ucfirst($deposit->status) }}
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@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')
@csrf

Refund

Give some or all of the deposit back to the client.

$
@csrf

Forfeit

Keep the deposit — for a no-show or a late cancellation.

@endif
@endsection