@extends('Admin.layout.app') @section('content') @if(session('success'))
{!! session('success') !!}
@endif
Transaction Details of -: {{ucwords($creditHolder->credit_holder)?:"-"}}
@foreach($credits as $credit) @php if($credit->credit_type){ $totalcredit += $credit->amount; }else{ $totaldebit += $credit->amount; } @endphp @endforeach
# Request ID Credit Debit Comments Created At Action
{{$loop->iteration}} {{ucwords($credit->request_id)}} {{($credit->credit_type == 1)? "$ ". number_format($credit->amount,2):""}} {{($credit->credit_type == 0)?"$ ". number_format($credit->amount,2):""}} {{$credit->comments}} {{date('d/F/Y g:i A',strtotime($credit->created_at))}}
@csrf @method('DELETE')
$ {{number_format($totalcredit,2)}} $ {{number_format($totaldebit,2)}} Total Amount $ {{number_format(($totalcredit + $totaldebit),2)}}
{{ $credits->links() }} Back
@endsection