@foreach ($transactions as $index => $transaction)
@if(isset($transaction->admin)) @endif @foreach ($transaction->bills as $bill) @endforeach @if(in_array($transaction->transaction_type_value,[3,4,7])) @endif @if(isset($transaction->additionalInfo) && trim($transaction->additionalInfo)!=='') @endif
BUKTI TRANSAKSI
Nomor transaksi #{{$transaction->number}}
Tanggal transaksi {{date('d-m-Y', strtotime($transaction->transactionDate))}}
Tanggal cetak {{date("d-m-Y")}}
Jenis transaksi {{$transactionTypes[$transaction->transaction_type_value]}}
Admin {{$transaction->admin->name}}
Detail transaksi Jumlah
{{ $bill->bill_type->name.' '.$months[$bill->month_value].' '.$bill->year_value }} - @if(isset($bill->student)) {{ $bill->student->name }} @elseif(isset($bill->new_student)) {{ $bill->new_student->name }} @endif {{number_format($bill->pivot->pay, 0, '', '.')}}
{{$transaction->description}} {{number_format($transaction->amount, 0, '', '.')}}
Total transaksi {{number_format($transaction->amount, 0, '', '.')}}

Informasi : {{$transaction->additionalInfo}}

struk ini merupakan alat bukti pembayaran yang sah, tidak memerlukan TTD dan stampel karena sudah terintegrasi dengan aplikasi {{env('APP_MOBILE_NAME')}}

@endforeach @if(count($outstandings)>0)
@foreach ($outstandings as $outstanding) @endforeach
Tagihan belum dibayar Jumlah
{{ $outstanding->bill_type->name.' '.$months[$outstanding->month_value].' '.$outstanding->year_value }} - @if(isset($outstanding->student)) {{ $outstanding->student->name }} @elseif(isset($outstanding->new_student)) {{ $outstanding->new_student->name }} @endif {{number_format($outstanding->amount-$outstanding->paidAmount, 0, '', '.')}}
@endif