@extends('layouts.thema') @section('content')
Print
Laporan pemasukan dan pengeluaran sekolah {{$school->name}}
@foreach($data as $a) @endforeach
No Tanggal Nama Sekolah Keterangan Pemasukan Pengeluaran
{{$loop->iteration}} {{$a->created_at}} {{$a->school->name}} {{$a->description}} @if($a->transaction_type == 'IN') Rp {{ number_format($a->amount,0,',','.') }} @endif @if($a->transaction_type == 'OUT') Rp {{ number_format($a->amount,0,',','.') }} @endif
TOTAL Rp {{ number_format($totalMasuk,0,',','.') }} Rp {{ number_format($totalKeluar,0,',','.') }}


TOTAL SALDO

TOTAL PEMASUKAN Rp {{ number_format($totalMasuk,0,',','.') }}
TOTAL PENGELUARAN Rp {{ number_format($totalKeluar,0,',','.') }}
SISA SALDO Rp {{ number_format($school->saldo,0,',','.') }}
@endsection