@extends('layout.app') @section('title', 'Shopkeeper Report') @section('page-title', 'Shopkeeper Report') @section('content')
Report Period: {{ \Carbon\Carbon::parse($starting_date)->format('d/m/Y') }} to {{ \Carbon\Carbon::parse($ending_date)->format('d/m/Y') }}
| 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) }} | ||