@extends('layouts.app') @section('title', 'Branch Statement Report') @section('content')
Print Preview

Branch Statement Report

@if(!$isBranchAdmin)
@endif
@if(!$isBranchAdmin)
@endif
@if($records->isNotEmpty())

Total Sales

{{ number_format($totalSales, 2) }}

Total Cash (SR)

{{ number_format($totalCash, 2) }}

Total Bank (SR)

{{ number_format($totalBank, 2) }}

Total Due

{{ number_format($totalDue, 2) }}

Total Due Collection

{{ number_format($totalDueCollection, 2) }}

Total Refund

{{ number_format($totalRefund, 2) }}

Total Service Charge Deduction

{{ number_format($totalServiceChargeDeduction, 2) }}

@if(!$isBranchAdmin)

Total Agent Commission (Payable)

{{ number_format($totalAgentCommissionPayable, 2) }}

Total Agent Commission (Paid)

{{ number_format($totalAgentCommissionPaid, 2) }}

Total Profit

{{ number_format($totalProfit, 2) }}

@endif

Today Sales

{{ number_format($todaySales, 2) }}

Today Cash (SR)

{{ number_format($todayCash, 2) }}

Today Bank (SR)

{{ number_format($todayBank, 2) }}

Today Due

{{ number_format($todayDue, 2) }}

Today Due Collection

{{ number_format($todayDueCollection, 2) }}

Today Refund

{{ number_format($todayRefund, 2) }}

Today Service Charge Deduction

{{ number_format($todayServiceChargeDeduction, 2) }}

@if(!$isBranchAdmin)

Today Agent Commission (Paid)

{{ number_format($todayAgentCommissionPaid, 2) }}

@endif
@if(!$isBranchAdmin) @endif @if(!$isBranchAdmin) @endif @if(!$isBranchAdmin) @endif @foreach($records as $record) @if(!$isBranchAdmin) @endif @if(!$isBranchAdmin) @endif @if(!$isBranchAdmin) @endif @endforeach
Created Delivery Invoice NoBranchCustomer IDPhoneService Rate Cash Bank Due Due Coll.Agent Comm. Agent ProfitType
{{ \Carbon\Carbon::parse($record['date'])->format('Y-m-d') }} {{ $record['delivery_date'] ? \Carbon\Carbon::parse($record['delivery_date'])->format('Y-m-d') : 'N/A' }} {{ Str::limit(Str::of($record['invoice_no'])->replace('-', ''), 12) }}{{ Str::limit($record['branch_name'] ?? 'N/A', 8) }}{{ Str::limit($record['customer_name'], 10) }} {{ Str::limit($record['customer_id'] ?? 'N/A', 6) }}{{ $record['customer_phone'] }}{{ Str::limit($record['service_name'] ?? 'N/A', 10) }} {{ number_format($record['service_rate'] ?? 0, 2) }} {{ number_format($record['cash'] ?? 0, 2) }} {{ number_format($record['bank'] ?? 0, 2) }} {{ number_format($record['due'] ?? 0, 2) }} {{ number_format($record['due_collection'] ?? 0, 2) }}{{ number_format($record['agent_commission_payable'] ?? 0, 2) }} {{ $record['agent_name'] ?? 'N/A' }} {{ number_format($record['profit'] ?? 0, 2) }}{{ ucfirst($record['type'] ?? 'N/A') }}
@else

No data found.

@endif
@endsection @push('scripts') @endpush