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

Sale Report

 
Export
{{-- ✅ Compact Summary Boxes --}} @php $totalProvider = collect($report)->sum('provider_price'); $totalSale = collect($report)->sum('sale_price'); $totalRevenue = $totalSale - $totalProvider; @endphp
Total Provider Price

{{ $totalProvider }}

Total Sale Price

{{$totalSale }}

Total Profit

{{ $totalRevenue }}

@foreach($report as $row) @if($row['orders'] > 0) @endif @endforeach
SN# Country/Region Currency Total Order Provider Price Sale Price
{{ $row['sn'] }}
Flag {{ $row['location_name'] }}
{{$row['currency']}} {{ $row['orders'] }} {{ $row['provider_price'] }} {{ $row['sale_price'] }}
@endsection