@extends('layout.app') @section('title', 'Shopkeeper Report') @section('page-title', 'Shopkeeper Report') @section('content')

{{ $shopkeeper['shop_name'] ?? 'N/A' }} - {{ $shopkeeper['city'] ?? 'N/A' }}

Report Period: {{ \Carbon\Carbon::parse($starting_date)->format('d/m/Y') }} to {{ \Carbon\Carbon::parse($ending_date)->format('d/m/Y') }}

Print
Reset
Starting Balance:
Rs. {{ number_format($starting_amount ?? 0, 2) }}
Ending Balance:
Rs. {{ number_format($ending_amount ?? 0, 2) }}
Net Change:
Rs. {{ number_format(($ending_amount ?? 0) - ($starting_amount ?? 0), 2) }}
@forelse($bill_details ?? [] as $bill) @empty @endforelse
Date Bill/Payment # Payment Mode Debit Credit Balance
{{ $bill['date'] ?? 'N/A' }} {{ $bill['bill_no'] ?? 'N/A' }}@if ($bill['type'] === 'payment') (Payment) @endif {{ $bill['mode'] }} Rs. {{ number_format($bill['debit'] ?? 0, 2) }} Rs. {{ number_format($bill['credit'] ?? 0, 2) }} Rs. {{ number_format($bill['balance'] ?? 0, 2) }}
No bills or payments found for this period
TOTAL Rs. {{ number_format($amount_total ?? 0, 2) }} Rs. {{ number_format($cash_payment_total ?? 0, 2) }} Rs. {{ number_format($ending_amount ?? 0, 2) }}
@endsection