@if(request()->is('*-pdf')) @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 ?? '' }}

@endif

Liste des clients


@foreach($customers as $customer) @endforeach
Nom Société Téléphone Adresse
{{ $customer->name }}
{{ $customer->shipping_name }}
{{ $customer->phones }}
{{ $customer->shipping_address }}

Créer le {{ \Carbon\Carbon::now()->isoFormat('lll') }}