@extends('layouts.master') @section('content')

{{ ucfirst($role) }} Management

Add {{ ucfirst($role) }}
@foreach($agent as $agents)
{{ $agents->name }}
@if($agents->isactive) Active @else Blocked @endif
@if($role === 'manager')
{{ $agents->totalschools }}
Schools
{{ $agents->pendingschoolinvoices }}
Pending
{{ $agents->expiredschools }}
Expired
@else
{{ $agents->totalquestions }}
Questions
{{ $agents->pendingquestions }}
Pending
{{ $agents->rejectedquestions }}
Rejected
@endif
@if($agents->image) @else @php $words = explode(' ', $agents->name); $initials = strtoupper(substr($words[0],0,1).(isset($words[1]) ? substr($words[1],0,1) : '')); @endphp
{{ $initials }}
@endif
{{ $agents->email }} {{ $agents->cntctnum }}
@endforeach
@endsection