@extends('crm.layouts.master') @section('title','Deposits') @section('page-css') @endsection @section('main-content')
@if(session('status'))
{{ session('status') }}
@endif
@foreach($deposits as $dep) @endforeach
# Client Amount Currency Status Reference Created By Approved By Date Action
{{ $dep->id }} {{ $dep->lead->fname ?? '' }} {{ $dep->lead->lname ?? '' }} {{ number_format($dep->amount, 2) }} @if($dep->credited_usd_amount !== null && $dep->currency !== 'USD')
Credited USD {{ number_format($dep->credited_usd_amount, 2) }}
@endif
{{ $dep->currency }} {{ ucfirst($dep->status) }} {{ $dep->reference ?? '—' }} {{ $dep->creator->name ?? '—' }} {{ $dep->approver->name ?? '—' }} {{ $dep->created_at->format('Y-m-d H:i') }} @if($dep->status === 'pending')
@csrf
@csrf
@else — @endif @if(Auth::user()->access_level === 'Admin')
@csrf @method('DELETE')
@endif
{{-- Add Deposit Modal --}} @endsection @section('page-js') @endsection