@extends('admin.layouts') @section('content')

Date-wise Sales Report

@if(!empty($branchName)) Branch: {{ $branchName }} @else All Branches @endif
{{-- ========================================================= --}} {{-- SUMMARY CARDS --}} {{-- ========================================================= --}}
Total Bills
{{ number_format($totalBills) }}
Total Quantity
{{ number_format($totalQuantity, 3) }}
Total Sales Amount
₹{{ number_format($totalAmount, 2) }}
Total Profit
₹{{ number_format($totalProfit, 2) }}
{{-- ========================================================= --}} {{-- FILTER --}} {{-- ========================================================= --}}
{{-- ========================================================= --}} {{-- DATE TABLE --}} {{-- ========================================================= --}}
Date-wise Sales Summary
Total sales grouped by date
{{ $dateReport->count() }} Days
@forelse($dateReport as $index => $report) @empty @endforelse
SNO DATE BILLS AMOUNT COUNT PROFIT ACTION
{{ $index + 1 }} {{ \Carbon\Carbon::parse( $report['date'] )->format('d-m-Y') }} {{ number_format($report['bills']) }} ₹{{ number_format( $report['amount'], 2 ) }} {{ number_format( $report['quantity'], 3 ) }} ₹{{ number_format( $report['profit'], 2 ) }} View
No Sales Found
@endsection