{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'POST',
'onsubmit' => "return confirm('".trans("Are sure you want to Reset All Agent Password !")."');",
'route' => ['Reset All Agent Password'])) !!}
{!! Form::submit('Reset All Password', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Agents'])) !!}
{!! Form::submit('Print All Agents', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-success')) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Conductors'])) !!}
{!! Form::submit('Print Conductors', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-info')) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Supervisors'])) !!}
{!! Form::submit('Print Supervisors', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-dark')) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Agents Grouped'])) !!}
{!! Form::submit('Print Agents By Commission', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary')) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Agents By Supervisor'])) !!}
{!! Form::submit('Print Agents By Supervisor', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-warning')) !!}
{!! Form::close() !!}
Register Agent
SN |
Name |
Mobile |
Password |
Type |
Company |
Address |
Status |
Action |
@foreach($agents as $i => $agent)
{{$i+1}} |
{{$agent->name}} |
{{$agent->msisdn}} |
{{$agent->password}} |
@if($agent->type == 1)
Non Commission
@elseif($agent->type == 2)
Commission Based
@else
Supervisor
@endif
|
{{$agent->company}} |
{{$agent->address}} |
@if($agent->status == 1)
Active
@elseif($agent->status == 0)
Inactive
@endif
|
{!! Form::open([
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['agents.show', $agent->id],
]) !!}
{!! Form::submit('Manage', ['class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary']) !!}
{!! Form::close() !!}
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'POST',
'onsubmit' => "return confirm('".trans("Are sure you want to Delete this Agent")."');",
'route' => ['Delete Agent', $agent->id])) !!}
{!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!}
{!! Form::close() !!}
@if($agent->is_supervisor == 1)
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'onsubmit' => "return confirm('".trans("Print Supervisor's Agents?")."');",
'route' => ['Supervisor Agents', $agent->id])) !!}
{!! Form::submit('Print', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-info')) !!}
{!! Form::close() !!}
@endif
|
@endforeach