@extends('admin.layout.app') @section('content')
{{-- ✅ Print Button --}}
{{-- ✅ Header --}}

Monthly Book Report

{{ $admin->name ?? '' }}
{{ \Carbon\Carbon::parse($start_date)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($end_date)->format('d/m/Y') }}
{{-- ✅ SALES REPORT (PAGE 1) --}}
Monthly Sales Report Details
@forelse($days as $day) @empty @endforelse
Date Total Sale Total Received Total Due Profit Expenses Net Profit
{{ \Carbon\Carbon::parse($day['date'])->format('d/m/Y') }} Rs. {{ number_format($day['totalSale'], 2) }} Rs. {{ number_format($day['totalReceived'], 2) }} Rs. {{ number_format($day['totalDue'], 2) }} Rs. {{ number_format($day['totalProfit'], 2) }} Rs. {{ number_format($day['totalExpense'], 2) }} Rs. {{ number_format($day['netProfit'], 2) }}
No record found.
Total Rs. {{ number_format($totalSale ?? 0, 2) }} Rs. {{ number_format($totalReceived ?? 0, 2) }} Rs. {{ number_format($totalDue ?? 0, 2) }} Rs. {{ number_format($totalProfit ?? 0, 2) }} Rs. {{ number_format($totalExpense ?? 0, 2) }} Rs. {{ number_format($netProfit ?? 0, 2) }}
{{-- ✅ PAGE BREAK --}}
{{-- ✅ PURCHASE REPORT (PAGE 2) --}}
Monthly Purchased Report Details
@forelse($purchaseDays as $pDay) @empty @endforelse
Date Total Purchase Total Paid
{{ \Carbon\Carbon::parse($pDay['date'])->format('d/m/Y') }} Rs. {{ number_format($pDay['totalPurchase'], 2) }} Rs. {{ number_format($pDay['totalPaid'], 2) }}
No purchase record found.
Total Rs. {{ number_format($totalPurchase ?? 0, 2) }} Rs. {{ number_format($totalPurchasePaid ?? 0, 2) }}
@endsection