@extends('layout.app') @section('content')
| # | Date | Type | Amount | Balance After | Remarks | By |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ date('d-M-Y h:i A', strtotime($log->created_at)) }} | @if ($log->type === 'collect') Collect @else Refund @endif | {{ number_format($log->amount, 2) }} | {{ number_format($log->current_security_amount, 2) }} | {{ $log->remarks }} | {{ $log->user->name ?? '—' }} |
| No transactions found. | ||||||
| Total Collected: | {{ number_format($logs->where('type', 'collect')->sum('amount'), 2) }} | |||||
| Total Refunded: | {{ number_format($logs->where('type', 'refund')->sum('amount'), 2) }} | |||||
| Current Security Amount: | {{ number_format($reseller->security_amount ?? 0, 2) }} | |||||