@extends('admin.layouts.app') @section('title', 'Routes') @section('content')
@include('admin.includes.alerts')

Profile Picture

{{ $agent->name }}

{{ $agent->email }}

Role : @if ($agent->is_supervisor == 1) Supervisor Agent @else Normal Agent @endif

@if ($agent->type == 1) Non Commision @elseif($agent->type == 2) Commision Based @else Supervisor @endif

Profile Details

{{ $agent->name }}

{{ $agent->email }}

{{ $agent->msisdn }}

{{ $agent->address }}

{!! Form::open([ 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['agents.edit', $agent->agent], ]) !!} {!! Form::submit('Edit Profile', ['class' => 'mb-2 mr-2 btn btn-sm btn-primary']) !!} {!! Form::close() !!}
{{--
  • Logged in at 9:00 AM on August 9, 2024
  • Updated profile picture at 10:30 AM on August 8, 2024
--}}
@if ($agent->is_supervisor == 1) {!! Form::open([ 'style' => 'display: inline-block;', 'method' => 'GET', 'onsubmit' => "return confirm('" . trans("Print Supervisor's Agents?") . "');", 'route' => ['agents.print', $agent->agent], ]) !!} {!! Form::submit('Print', ['class' => 'mb-2 mr-2 btn btn-sm btn-primary']) !!} {!! Form::close() !!} @endif
@forelse ($sub_agents as $index => $sub_agent) @empty @endforelse
# Name Phone Number Address Type
{{ $index + 1 }} {{ $sub_agent->name }} {{ $sub_agent->msisdn }} {{ $sub_agent->address }} @if ($sub_agent->type == 1) Non Commision @elseif($sub_agent->type == 2) Commision Based @else Supervisor @endif
No Sub Agent Found!
@endsection