Register User
SN | Name | Mobile | Type | Company | Image | Action | |
---|---|---|---|---|---|---|---|
{{$i+1}} | {{$user->name}} | {{$user->msisdn}} | {{$user->email}} | @if($user->role == 1) Super Admin @elseif($user->role == 2) Authority @elseif($user->role == 4) Manager @elseif($user->role == 3) Supervisor @elseif($user->role == 5) Staff @elseif($user->role == 6) Driver @elseif($user->role == 7) Condoctor @else System User @endif | @php $company = \Illuminate\Support\Facades\DB::table('companies') ->where('id', $user->company) ->value('name'); echo $company; @endphp | {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Edit Company User', $user->id])) !!} {!! Form::submit('Edit', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary')) !!} {!! Form::close() !!} @if(\Illuminate\Support\Facades\Auth::user()->id == $user->id || $user->role == 3) @else {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'onsubmit' => "return confirm('".trans("Are sure you want to Delete this User")."');", 'route' => ['Delete Company User', $user->id])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!} @endif |