Business Day Report - {{ \Carbon\Carbon::parse($date)->format('d/m/Y') }}

Business Day: {{ \Carbon\Carbon::parse($date)->format('d/m/Y') }}
@if(Auth::user()->role !== 'branch_admin')
@else

Current business date only

@endif

Opening Balance

{{ $openingBalance }}

Business Day Credit(Receivings)

{{ $todayCredits }}

Business Day Debit(Payments)

{{ $todayDebits }}

Closing Balance

{{ $closingBalance }}

Category-wise Summary

@forelse($categoryData as $item) @empty @endforelse @if(count($categoryData) > 0) @endif
Category Credit(Receivings) (SAR) Debit(Payments) (SAR) Net
{{ $item['category_name'] }} {{-- @if($item['agent_name']) > {{ $item['agent_name'] }} @elseif($item['subcategory_name']) --}} @if($item['subcategory_name']) > {{ $item['subcategory_name'] }} @endif {{ $item['credit'] > 0 ? 'SAR ' . number_format($item['credit'], 2) : '—' }} {{ $item['debit'] > 0 ? 'SAR ' . number_format($item['debit'], 2) : '—' }} {{ $item['net'] != 0 ? 'SAR ' . number_format($item['net'], 2) : '—' }}
No transactions for this date.
Total {{ 'SAR ' . number_format(array_sum(array_column($categoryData, 'credit')), 2) }} {{ 'SAR ' . number_format(array_sum(array_column($categoryData, 'debit')), 2) }} {{ 'SAR ' . number_format(array_sum(array_column($categoryData, 'net')), 2) }}