@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 sorties par produit

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

@foreach ($sales as $product) iteration > 1) style="margin-top: 50px" @endif> @foreach ($product as $sale) @endforeach
Produit Date TypeSortie Client Quantité Montant
{{ $sale['product']->name }}
{{ \Carbon\Carbon::create($sale['date'])->isoFormat('ll') }}
{{ $sell['out_type'] }}
{{ $sale['customer'] ? $sell['customer']->name : '' }}
{{ $sell['quantity'] }}
{{ number_format($sale['total'], 0, ',', ' ') }} FCFA

Quantité : {{ $product->sum('quantity') }}          Total Vendu : {{ number_format($product->sum('total'), 0, ',', ' ') }} FCFA

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

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

@endforeach

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