@php $this->current_page =$customers->currentPage(); @endphp

{{\App\Models\User::find($user_id)->name}} - Follow up Customers

  • {{__('messages.during a period of time')}}
@can('export customers excel') @endcan {{-- @can('export customers pdf') @endcan --}}
@can('change customer owner')
page_rows
{{__('messages.assigned_to')}}
team_id getTeamUsers @foreach (Auth::user()->allTeams () as $teams) @endforeach
assigned_to .defer @foreach ( $team_users as $team_user) @endforeach
@endcan # {{__('messages.Name')}} {{__('messages.Code')}} {{__('messages.mobile')}} {{__('messages.topic')}} {{-- @if ((auth()->user()->can("activate customers") || auth()->user()->can("deactivate customers")) || ( auth()->user()->can("deactivate my own customers") )) --}} {{__('messages.Active')}} {{-- @endif --}} {{__('messages.Updated By')}} {{__('messages.Updated At')}} {{__('messages.Created At')}} @can('change customer owner') @if ($allowChecked) {{($checkAll ||$checkPage )? $counts ." Rows":"Select Results"}}
@endif @endcan
@forelse ($customers as $key =>$customer) #{{$customers->firstItem() + $key}} {{__('messages.Name')}} {{ $customer->name}} @if ($customer->has_orders()) Has Orders @endif {{__('messages.Code')}}{{$customer->code}} {{__('messages.mobile')}}{{$customer->mobile}} {{__('messages.topic')}}{{$customer->topic}} {{__('messages.active')}} @if ((auth()->user()->can("activate customers") || auth()->user()->can("deactivate customers")) || (auth()->user()->id == $customer->last_follow_up_by && auth()->user()->can("deactivate my own customers") )) @if($customer->active == 1) {{__('messages.Deactivate')}} {{$customer->name}} mt-1 activate({{$customer->id}}) {{-- --}} @else {{__('messages.Activate')}} {{$customer->name}} mt-1 activate({{$customer->id}}) @endif @endif {{__('messages.Updated By')}}{{($customer->last_updated_by_user)?$customer->last_updated_by_user->name:"-"}} {{__('messages.Updated At')}} @if ($customer->updated_at) {{\Carbon\Carbon::createFromTimeString($customer->updated_at)->translatedFormat('j M , Y, g:i a')}} @endif {{__('messages.Created At')}} @if ($customer->created_at) {{\Carbon\Carbon::createFromTimeString($customer->created_at)->translatedFormat('j M , Y, g:i a')}} @endif @can('change customer owner') @if ($allowChecked)   @endif @endcan @empty {{__('messages.Empty Result')}} @endforelse
{{$customers->links()}}