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

Agents @can('ADD AGENT') Create @endcan

@if(\Session::has('success'))
{{\Session::get('success')}}
@endif
{{ $agent->links("pagination::bootstrap-4") }} @if($agent->hasMorePages() || (isset($input['searchvalue']) && $input["searchvalue"]!=""))
@endif
@if(isset($agent) && $agent->count()>0) @foreach ($agent as $irow=> $ragent) @endforeach @else @endif
# Agent Code Name Area Commission Rate Action
{{ $irow+1 }} {{$ragent->agentcode}} {{$ragent->name}} {{$ragent->description}} {{$ragent->commrate}}
@can('VIEW AGENT') View  @endcan @can('EDIT AGENT') Edit  @endcan @can('DELETE AGENT')
{{csrf_field()}}
@endcan
No Record Found
@endsection