@extends('layouts.app') @section('title') All Departments @stop @section('breadcrumb') @stop @section('content')
@permission('create-department')

Departments ListAdd Department

@endpermission
@if(Session::has('success')) @endif @if( $DepartmentList->count() > 0 ) @foreach( $DepartmentList as $list ) @endforeach @endif
Name Role Created Date Action
{{$list->department_name}} {{$list->role ? $list->role->name : "" }} {{$list->created_at}} @permission('delete-department')
@method('DELETE') @csrf {{-- --}} {{-- --}}
{{-- --}} @endpermission @permission('edit-department') {{-- --}} @endpermission
@stop @section('js')