@extends('layout.mainlayout') @section('content')
@component('components.page-header') @slot('title') Doctors @endslot @slot('li_1') Doctors List @endslot @endcomponent
@auth @if (auth()->user()->type == 'admin' or auth()->user()->type == 'manager') @component('components.table-header') @slot('title') Doctors List @endslot @slot('li_1') {{ url('add-doctor') }} @endslot @endcomponent @endif @endauth @guest @component('components.table-header') @slot('title') Doctors List @endslot @slot('li_1') {{ url('add-appointment') }} @endslot @endcomponent @endguest
@auth @if (auth()->user()->type == 'admin' or auth()->user()->type == 'manager') @endif @endauth @php $json = file_get_contents(public_path('../public/assets/json/doctors.json')); $doctors = json_decode($json, true); @endphp @foreach ($doctors as $doctor) @auth @if (auth()->user()->type == 'admin' or auth()->user()->type == 'manager') @endif @endauth @endforeach
Name Department SpecializationDegree Mobile Email Joining Date
{{ $doctor['Name'] }} {{ $doctor['Department'] }} {{ $doctor['Specialization'] }}{{ $doctor['Degree'] }} {{ $doctor['Mobile'] }} {{ $doctor['Email'] }} {{ $doctor['JoiningDate'] }}
@component('components.notification-box') @endcomponent
@endsection