@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
{{ __('Duration: 14-12-2025 to 24-12-2025') }}
--}}| {{ __('Customer') }} | {{ __('Phone') }} | {{ __('Email') }} | {{ __('Type') }} | {{ __('Total Sales') }} | {{ __('Total Amount') }} | |
|---|---|---|---|---|---|---|
| {{ $customer->name }} | {{ $customer->phone }} | {{ $customer->email }} | @if ($customer->type == 'Retailer'){{ __('Customer') }} | @else{{ $customer->type }} | @endif{{ $customer->sales?->count() }} | {{ currency_format($customer->sales?->sum('totalAmount'), currency: business_currency()) }} |
| {{ __('Total') }} | {{ $customers->sum(fn($customer) => $customer->sales?->count() ?? 0) }} | {{ currency_format($customers->sum(fn($customer) => $customer->sales?->sum('totalAmount') ?? 0), currency: business_currency()) }} |