@extends('template.app') @section('title', 'Laporan Bank') @section('css') @endsection @section('breadcrumb') @endsection @section('content')
@foreach($bank_report as $report) @endforeach
Tanggal ID Transaksi Jenis Transaksi Metode Pembayaran Nama Bank Nomor Rekening Debit Kredit Saldo
{{ date('Y-m-d', strtotime($report->payment_date)) }} {{ $report->transaction_id }} {{ $report->transaction_type }} {{ $report->payment_method }} {{ $report->bank_name ?? '-' }} {{ $report->account_number ?? '-' }} {{ $report->type == 'Debit' ? number_format($report->payment_amount, 0, ',', '.') : '' }} {{ $report->type == 'Kredit' ? number_format($report->payment_amount, 0, ',', '.') : '' }} @php $balance = $loop->index == 0 ? 0 : $balance; $balance += $report->type == 'Kredit' ? $report->payment_amount : -$report->payment_amount; @endphp {{ number_format($balance, 0, ',', '.') }}
@endsection @section('js') @endsection