@foreach($record_seller as $row )
@php
$seller_select = Profile::user($row->idUser);
@endphp
@php
$record_client = ModClientProvider::information([
'idUserResponsible'=> $row->idUser,
'optionList'=>'p',
]);
//INTERVALO DO MES ATULA
$date = Carbon::now();
$date = $date->format('Y-m-d');
$date_first = ModCronos::convertDateBR(ModCronos::firstDayMonth($date));
$date_last = ModCronos::convertDateBR(ModCronos::lastDayMonth($date));
$month= ModCronos::numbersToMonth(Carbon::now()->format('m'),'pt-br');
$date_range = $date_first . ' 00:00 - ' . $date_last . ' 23:59';
$record_client_month = ModClientProvider::information([
'idUserResponsible'=> $row->idUser,
'optionList'=>'p',
'dateRange'=> $date_range,
]);
$record_client_month_last = ModClientProvider::information([
'idUserResponsible'=> $row->idUser,
'optionList'=>'p',
'dateRange'=> $date_range,
]);
@endphp
{{ $row->userName }}
{{ $row->userEmail }}
@isset($row->userCel)
{{ $row->userCel }}
@endisset
Mês atual: {{$record_client_month->total()}}
Mês anterior: {{$record_client_month_last->total()}}
@if($record_client_month->total() > $record_client_month_last->total())
+ {{$record_client_month->total() - $record_client_month_last->total()}}
@elseif($record_client_month->total() < $record_client_month_last->total())
{{$record_client_month->total() - $record_client_month_last->total()}}
@else
@endif
{{$record_client->total()}}
{{-- @if($record_client->total()>0)--}}
{{-- --}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- @endif--}}