@extends('admin.layouts.master') @section('title', 'Manage Designation') @section('content')

{{ isset($department) ? 'Update' : 'Add' }} Department

@if (isset($department))
@csrf @method('PUT') @else @csrf @endif
@error('name') {{ $message }} @enderror
@error('position') {{ $message }} @enderror

All Departments

@forelse($departments as $key => $info) @empty @endforelse
SL Name Position Status Action
{{ $loop->iteration }} {{ $info->name ?? '' }} {{ $info->position ?? '' }} @if ($info->status == 1) Active @else InActive @endif
@csrf @method('DELETE')
@if (isset($department) && $department->id == $info->id) Updating @endif

No Department Found

@endsection