@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 Commandes par Produit


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

@foreach ($orders as $product) @foreach ($product as $order) @endforeach
Produit Date Client Quantité Montant
{{ $order['product']->name }}
{{ \Carbon\Carbon::create($order['created_at'])->isoFormat('ll') }}
{{ ($order['customer']) ? $order['customer']->first_name.' '.$order['customer']->last_name : "" }}
{{ $order['sell_quantity'] }}
{{ number_format($order['amount'], 0, ',', ' ') }} FCFA

Quantité : {{ $product->sum('sell_quantity') }}          Total Attendu : {{ number_format($product->sum('amount'), 0, ',', ' ') }} FCFA

@endforeach

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