{{-- ✅ PRINT BUTTON --}}
{{-- ✅ HEADER --}}
{{--
{{--
{{--
{{--
DAILY BOOK REPORT
{{$admin->name ?? ''}}
{{ $date ? \Carbon\Carbon::parse($date)->format('d-m-Y') : '' }}
{{--
Date:
{{ $startDate->format('d M Y') }}
to
{{ $endDate->format('d M Y') }}
{{-- ✅ INCOME --}}
INSTALLMENT PAYMENT RECEIVED
| Date | --}}Bill No. | Customer Name | Received Amount |
|---|---|---|---|
| {{ $ledger->date ?? ''}} | --}}{{ $ledger->sale->bill_no ?? ''}} | {{ $ledger->customer?->name ?? ''}} | {{ $ledger->amount ?? ''}} |
| No found. | Total | {{$ledgers->sum('amount' ?? '')}} | |
SALES
| Bill No. | Items | Total Sale | Received Amount | Amount Due | Profit |
|---|---|---|---|---|---|
| {{ $sale->bill_no ?? ''}} |
@if($sale->items && count($sale->items) > 0)
@foreach($sale->items as $item)
{{ $item->item?->name ?? '-' }}
({{ $item->quantity ?? 0 }})
@endforeach @else - @endif |
Rs. {{ number_format($sale->total ?? 0, 2) }} | Rs. {{ number_format(($sale->received_balance ?? (($sale->total ?? 0) - ($sale->remaining ?? 0))), 2) }} | Rs. {{ number_format($sale->remaining ?? 0, 2) }} | @php $saleProfit = $sale->installment_charges ?? 0; if($sale->items && count($sale->items) > 0){ foreach($sale->items as $si){ $qty = (float) ($si->quantity ?? 0); $saleRate = (float) ($si->rate ?? 0); $purchaseRate = (float) ($si->item?->purchase_rate ?? 0); $saleProfit += ($saleRate - $purchaseRate) * $qty; } } @endphp Rs. {{ number_format($saleProfit, 2) }} |
| No income found. | |||||
| Total | Rs. {{ number_format($totalSale, 2) }} | Rs. {{ number_format($totalReceived, 2) }} | Rs. {{ number_format($totalDue, 2) }} | Rs. {{ number_format($totalProfit, 2) }} | |
{{--
Total Sale: Rs. {{ number_format($totalIncome, 2) }}
Total Received Amount: Rs. {{ number_format($totalReceivedIncome, 2) }}
Total Profit Amount: Rs. {{ number_format($totalProfit, 2) }}
--}}
{{-- ✅ EXPENSE --}}
DAILY EXPENSES
| Account | Amount | {{--Paid Amount | --}}
|---|---|---|
| {{ $exp->account->name ?? '-' }} | Rs. {{ number_format($exp->amount ?? 0, 2) }} | {{--Rs. {{ number_format($exp->paid_amount ?? ($exp->amount ?? 0), 2) }} | --}}
| No expenses | Total | {{$expenses->sum('amount') ?? ''}} |
{{--
Total Expenses: Rs. {{ number_format($totalExpenses, 2) }}
--}}
{{-- ✅ NET PROFIT --}}
DAILY NET PROFIT: Rs. {{ number_format($netProfit, 2) }}
{{-- ✅ PURCHASE SUMMARY --}}
ITEMS PURCHASED
| Date | --}}Supplier | Item | Quantity | Price | Total |
|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($purchase->date)->format('d/m/Y') }} | --}}{{$purchase->supplier?->name ?? '-' }} | {{ $item->item?->name ?? '-' }} | {{ $item->quantity ?? 0 }} | Rs. {{ number_format($item->rate ?? 0, 2) }} | Rs. {{ number_format($item->subtotal, 2) }} |
| {{ \Carbon\Carbon::parse($purchase->date)->format('d/m/Y') }} | {{ $purchase->supplier?->name ?? '-' }} | No items | |||
| No purchase found. | |||||
| Total | Rs. {{ number_format($grandTotal, 2) }} | ||||
PAYMENT TO SUPPLIER
| Date | --}}Supplier | Mode of payment | Amount |
|---|---|---|---|
| {{ \Carbon\Carbon::parse($wallet->date)->format('d/m/Y') }} | --}}{{ $wallet->supplier?->name ?? '-' }} | {{ $wallet->note }} | {{ $wallet->amount }} |
| No purchase found. | Total | {{$wallets->sum('amount')}} | |
{{--
Total Supplier Amount: Rs. {{ number_format($wallets->sum('amount'), 2) }}
--}}
{{-- Total Quantity Purchased: {{ number_format($totalPurchaseQty, 0) }}
Total Quantity Sold: {{ number_format($totalSoldQty, 0) }}
--}}
{{--
Generated on {{ $date ?? '' }}
--}}