@php $company = \App\Models\Company::all()->last() @endphp
{{ $company->address }}
@php $phones = collect(); $company->phone1 ? $phones->push($company->phone1) : ''; $company->phone2 ? $phones->push($company->phone2) : ''; $company->phone3 ? $phones->push($company->phone3) : ''; $company->phone4 ? $phones->push($company->phone4) : ''; @endphp
Tél : {{ $phones->join(', ') }}
E-mail: {{ $company->email1 ?? '' }}

Beauty Care & Fashion


Rapport des Ventes par Méthode de Paiement

Du {{ \Carbon\Carbon::create($reportDate['from'])->isoFormat('ll') }} Au {{ \Carbon\Carbon::create($reportDate['to'])->isoFormat('ll') }}

@foreach($sales as $paymentMethod) @foreach($paymentMethod as $sale) @endforeach
Paiement Date Produits Coupon Client Total
{{ $sale->paymentMethod->method }}
{{ \Carbon\Carbon::create($sale->date)->isoFormat('ll') }}
@php $cart = $sale->order->cart; @endphp
@foreach($cart->products_json as $product) {{ $product['quantity'] }} {{ $product['name'] }}, @endforeach
{{ number_format(($sale->discount_on_coupon ?? 0), 0, ',', ' ') }}
{{ ($sale->customer) ? $sale->customer->first_name.' '. $sale->customer->last_name : "" }}
{{ number_format($sale->total, 0, ',', ' ') }} FCFA

Total Vendu : {{ number_format($sales->sum('total'), 0, ',', ' ') }} FCFA

Total Attendu : {{ number_format($sales->order->sum('sub_total'), 0, ',', ' ') }} FCFA

Ecart : {{ number_format($sales->sum('total') - $sales->order->sum('sub_total'), 0, ',', ' ') }} FCFA

Liste générée le {{ \Carbon\Carbon::now()->isoFormat('lll') }}

@endforeach