@extends('layout.mainlayout') @section('content')
@component('components.breadcrumb') @slot('title') Department Name List @endslot @endcomponent
Add New Department Name
@if (session('success'))
{{ session('success') }}
@elseif(session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if(isset($department_name)) @method('PUT') @endif

All Department Data

List of all Department, you can edit or delete any client.Please do it very carefully.

@foreach($department_names as $department_name) @endforeach
ID Name Action
{{$department_name->id}} {{$department_name->name}} @can('update-department') Edit @endcan @can('delete-department') Delete @endcan
@if(isset($department_name))
@csrf @method('PUT')
@endif @endsection @push('scripts') @endpush