@extends('layouts.admin.app') @section('title','Laporan Pendapatan') @section('content')

Laporan Pendapatan

{{-- FILTER --}}
{{-- SUMMARY --}}
Total Pendapatan

Rp {{ number_format($totalIncome,0,',','.') }}

Total Biaya Admin

Rp {{ number_format($totalAdmin,0,',','.') }}

Total Pendapatan Bersih

Rp {{ number_format($totalNet,0,',','.') }}

{{-- TABLE --}}
@forelse($transactions as $t) @empty @endforelse
No Kode Transaksi Nama Pasien Total Biaya Admin Bersih Tanggal Bayar
{{ $loop->iteration }} {{ $t->transaction_code }} {{ $t->patient->name }} Rp {{ number_format($t->total_amount,0,',','.') }} Rp {{ number_format($t->system_fee_amount,0,',','.') }} Rp {{ number_format($t->total_amount - $t->system_fee_amount,0,',','.') }} {{ $t->paid_at?->format('d M Y') }}
Tidak ada data
@endsection