@extends('layouts.admin') @section('header-content') @endsection @section('content')
Filter
@foreach($users as $key=>$user)
@if(isset($user->image) && !empty($user->image)) @else @endif
{{$user->firstname.' '.$user->lastname}}

@if(!empty($user->roles->first())){{$user->roles->first()->display_name}} @endif

  • @if(!empty($user->roles->first()) && ($user->roles->first()->name=='so'|| $user->roles->first()->name=='ase'))Sales {{$user->CMonthSale($user->id)}} @endif
  • RSM : @if(isset($user->region) && isset($user->region->rsm)){{$user->region->rsm->firstname.' '.$user->region->rsm->lastname}} @endif
  • @if(!empty($user->roles->first()) && $user->roles->first()->name!='rsm') City: @if(isset($user->city) ){{$user->city->name}} @endif @endif
  • @if(!empty($user->roles->first()) && ($user->roles->first()->name=='so'|| $user->roles->first()->name=='ase'))Recovery {{$user->CMonthRecovery($user->id)}} @endif
  • Region: @if(isset($user->region)){{$user->region->name}} @endif
@endforeach
{{ $users->links() }}
@endsection @section('footer-content') @endsection