@extends('layouts.app') @section('content')
| SR. | Name | Department | Role | Platform Type | Actions | |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $user->name }} | {{ $user->email }} | @if($user->department_id == 1) Soil and Water Conservation Department @elseif($user->department_id == 2) Directorate of Agricultural Engineering @elseif($user->department_id == 3) Both @else {{ $user->department_id }} @endif | {{ $user->roles->first()->name ?? 'No Role' }} | {{ $user->platform_type }} | @can('user edit') @endcan @can('user delete') @endcan |