@extends('layouts.app') @section('content')
Back

Site Report

@if(count($data) > 0)

Company: {{ $data[0]->Company }}

Site: {{ $site }}
Date Period: {{ $data[0]->DateHeading }}
@php $totalAmountPaid = 0; @endphp @foreach ($data as $row) @php $totalAmountPaid += $row->AmountPaid; @endphp @endforeach
Voucher Date Voucher# Amount Remarks Account Name Petty Cash/Bank
{{ \Carbon\Carbon::parse($row->VoucherDate)->format('d-m-Y') }} {{ $row->Voucher_ID }} {{ number_format($row->AmountPaid) }} {{ $row->Remarks }} {{ $row->AccountName }} {{ $row->PettyCashAccount }}
Grand Total: {{ number_format($totalAmountPaid) }}
@else

No records found for the selected criteria.

@endif
@endsection