{{-- Include letterhead --}} @includeIf('_partials.letterhead-pdf')

Service Report

Generated on {{ date('F j, Y \a\t g:i A') }}

@if($start_date || $end_date)
Report Period: @if($start_date && $end_date) {{ $start_date }} to {{ $end_date }} @elseif($start_date) {{ $start_date }} @elseif($end_date) {{ $end_date }} @endif
@endif
{{-- Summary Section --}}

Report Summary

Total Sales

{{ number_format($total_sales, 2) }}

All transactions

Service Revenue

{{ number_format($total_service_revenue, 2) }}

{{ $summary['service_revenue_percentage'] }}% of total

Total Transactions

{{ number_format($transactions_count) }}

All transactions

Service Transactions

{{ number_format($service_transactions_count) }}

Service-related only

Services Count

{{ number_format($summary['unique_services_count']) }}

Active services

Avg Service Value

{{ number_format($summary['avg_service_transaction_value'], 2) }}

Per transaction
{{-- Services Section --}} @if(!empty($services))

Services Performance

@foreach($services as $service) @endforeach
Service Name Status Transactions Quantity Total Amount Discount Avg Unit Price
{{ $service['name'] }} {{ ucfirst($service['status']) }} {{ number_format($service['transactions']) }} {{ number_format($service['quantity'], 2) }} {{ number_format($service['amount'], 2) }} {{ number_format($service['discount'], 2) }} {{ number_format($service['avg_unit_price'], 2) }}
@endif {{-- Top Services Section --}} @if(!empty($top_services))

Top Performing Services

@foreach($top_services as $index => $service) @endforeach
Rank Service Name Transactions Total Revenue Avg Transaction Value
#{{ $index + 1 }} {{ $service['name'] }} {{ number_format($service['transactions']) }} {{ number_format($service['revenue'], 2) }} {{ number_format($service['avg_value'], 2) }}
@endif {{-- Payment Methods Section --}} @if(!empty($payment_methods))

Payment Methods

@foreach($payment_methods as $method => $amount) @endforeach
Payment Method Amount Percentage
{{ $method }} {{ number_format($amount, 2) }} {{ $total_paid > 0 ? number_format(($amount / $total_paid) * 100, 1) : 0 }}%
@endif {{-- Footer --}}