@extends('layouts.app') @section('title', 'Manage Deposit') @push('css') @endpush @section('content')

Deposits Management

Total All Deposit
RM {{ number_format($stats['sum_Paid'] + $stats['sum_Refund'], 2) }}
{{ number_format($stats->total_Paid + $stats->total_Refund) }} Season Cards
Total Paid
RM {{ number_format($stats->sum_Paid, 2) }}
{{ number_format($stats->total_Paid) }} Season Cards
Total Refund
RM {{ number_format($stats->sum_Refund, 2) }}
{{ number_format($stats->total_Refund) }} Season Cards
Total Forfeit
RM {{ number_format($stats->sum_Forfeit, 2) }}
{{ number_format($stats->total_Forfeit) }} Season Cards
List of cards
Reset

RM {{ number_format($total, 2) }}

{{-- --}} {{-- --}} @forelse ($deposits as $index => $deposit) @php $amount = $deposit->card_deposit ?? 0; $refund = $deposit->status == \App\Models\Traits\Enum\DepositStatus::REFUND ? $amount : 0; $forfeit = $deposit->status == \App\Models\Traits\Enum\DepositStatus::FORFEIT ? $amount : 0; @endphp @empty @endforelse
No.Register DateSite ID Card No.Site NameAccount No. Site Name Name Amount Refund Forfeit Card Sale Balance Status  
{{ $deposits->firstItem() + $index }} {{ $deposit->site_id }} {{ $deposit->card_no }} {{ $deposit->account_no }} {{ $deposit->site->name ?? '-' }} {{ $deposit->cardHolder->name ?? '-' }}{{ $deposit->card_deposit ?? '-' }} {{ $refund ? number_format($refund, 2) : '-' }} {{ $forfeit ? number_format($forfeit, 2) : '-' }} {{ $deposit->rental_deposit ?? '-'}} {{ number_format($amount - $refund - $forfeit, 2) }} {{ $deposit->status->label() }}
@if ($deposit->status === \App\Models\Traits\Enum\DepositStatus::PAID)
@method('PUT') @csrf
@endif
@method('DELETE') @csrf
No records found
@endsection @push('js') @endpush