@extends('layouts/contentNavbarLayout') @section('title', 'Deposit Details') @section('vendor-style') @endsection @section('content')

Deposit Details

@if (session('success')) @endif @if (session('error')) @endif {{-- Statistics Cards (match Users UI) --}}
{{ number_format($stats['received_count'] ?? 0) }} Deposit Received
{{ number_format($stats['pending_count'] ?? 0) }} Deposit Pending
{{ number_format($stats['return_count'] ?? 0) }} Deposit Return
{{ number_format($stats['pending_release_count'] ?? 0) }} Pending Release Student
{{-- Search Filters (match Users UI) --}}
{{--
Search Filters
--}}
{{-- Tabs --}}
{{-- Tab: Deposit Received --}}
@forelse($depositsReceived as $d) @php $s = $d->student; $profileDoc = $s->documents->where('document_type', 'profile_photo')->first(); @endphp @empty @endforelse
User Deposit Date Amount Payment Mode UTR / Cheque No. Status Actions
@if($profileDoc) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
{{ $d->actual_deposit_date?->format('d M Y') ?? '—' }} ₹{{ $d->amount ? number_format($d->amount, 2) : '—' }} {{ $d->payment_mode ? ucfirst($d->payment_mode) : '—' }} {{ $d->transaction_id ?? '—' }} Received
{{-- Tab: Deposit Pending --}}
@forelse($depositPending as $s) @php $profileDoc = $s->documents->where('document_type', 'profile_photo')->first(); @endphp @empty @endforelse
User Amount Status Actions
@if($profileDoc) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
Pending
{{-- Tab: Deposit Return --}}
@forelse($depositReturn as $dr) @php $s = $dr->student; $profileDoc = $s->documents->where('document_type', 'profile_photo')->first(); @endphp @empty @endforelse
User Amount Payment Mode UTR/Cheque No. Date Status Actions
@if($profileDoc) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
₹{{ number_format($dr->amount_returned, 2) }} {{ ucfirst($dr->payment_mode) }} {{ $dr->transaction_id ?? '—' }} {{ $dr->return_date?->format('d M Y') ?? '—' }} Returned
{{-- Tab: Deposit Pending Release Student --}}
@forelse($depositPendingRelease as $s) @php $profileDoc = $s->documents->where('document_type', 'profile_photo')->first(); @endphp @empty @endforelse
User Leaving Date Status Actions
@if($profileDoc) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
{{ $s->updated_at?->format('d M Y') ?? '—' }} Left
@endsection @section('page-script') @endsection