@extends('layout.mainlayout') @section('content')
@component('components.page-header') @slot('title') Department @endslot @slot('li_1') Department List @endslot @endcomponent
@component('components.table-header') @slot('title') Department List @endslot @slot('li_1') {{ url('add-department') }} @endslot @endcomponent
@php $json = file_get_contents(public_path('../public/assets/json/departments.json')); $departments = json_decode($json, true); @endphp @foreach ($departments as $department) @endforeach
Department Department Head Description Date Status
{{ $department['Department'] }} {{ $department['DepartmentHead'] }} {{ $department['Description'] }} {{ $department['Date'] }}
@component('components.notification-box') @endcomponent
@endsection