@extends('layouts.AdminMaster') @section('content') @foreach ($logs as $log) @if($log && $log->first() && $log->first()->user) @endif {{--@foreach ($days->groupBy('user_id') as $day) @endforeach--}} @endforeach
Id Client Nom email Dates d'envoi Nombre d'envoi
{{$log->first()->user->code}} {{ $log->first()->user->name.' '.$log->first()->user->prenom}} {{$log->first()->user->email}} @foreach($log as $user) {{ $user->date }}
@endforeach
{{ count($log) }}
{{ $day->first()->client->code }} {{ $day->first()->client->name.' '.$day->first()->client->prenom}} @foreach($day as $log) {{ $log->created_at }}
@endforeach
@foreach($day->unique('ip') as $log) {{ $log->ip }}
@endforeach
@foreach($day->unique('commandes') as $log) @if($log->commandes) @foreach($log->commandes as $commande) N°: {{ $commande->numero or $commande->id }} Visualiser
@endforeach @endif @endforeach
@php $total_precommandes = 0.00; @endphp @foreach($day as $log) @php $total_precommandes += $log->total_precommandes; @endphp @endforeach {{ number_format($total_precommandes,2) }} {{ $infos->devise }}
{{ csrf_field() }} {{ method_field('DELETE') }}
@endsection @section('script') @endsection @section('style') @endsection