<?php

use App\Http\Controllers\AdminController;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('index');
});
Route::get('/about', function () {
    return view('about');
});
Route::get('/contact', function () {
    return view('contact');
});
Route::get("/docters", function () {
    return view('docter');
});
Route::get('/app', function () {
    return view('layouts.app');
});

Route::view('/services', 'services');

// Route::get('/admin/',[AdminController::class,'index'])->name("admins");

// Route::post('/admin/login',[AdminController::class,'authenticate_admin'])->name("admin_login");

Route::middleware(['auth', 'checksuperadmin'])->group(function () {
    Route::prefix('/admin')->group(function () {
        Route::get('/dashboard', App\Http\Livewire\Admins\Dashboard::class)->name('admin_dashboard');
        Route::get('settings', App\Http\Livewire\Admins\Settings::class)->name('admin_settings');
        Route::get('nurses', App\Http\Livewire\Admins\Nurses::class)->name('nurses');
        // Route::get('/docters', App\Http\Livewire\Admins\Docter::class)->name('admin_docters');
        Route::get('/operationsreport', App\Http\Livewire\Admins\Operationreport::class)->name('admin_operations_report');
        Route::get('/patients', App\Http\Livewire\Admins\Patients::class)->name('admin_patients');
        Route::get('/birthsreport', App\Http\Livewire\Admins\Birthreport::class)->name('admin_birth_report');
        Route::get('/patientBills', App\Http\Livewire\Admins\Bills::class)->name('patient_bills');
        Route::get('/rooms', App\Http\Livewire\Admins\Rooms::class)->name('Rooms');
        Route::get('/beds', App\Http\Livewire\Admins\Beds::class)->name('patients_beds');

        Route::get('/medicinesStore', App\Http\Livewire\Admins\Medicinestore::class)->name('medicinesStore');

        Route::get('/departments', App\Http\Livewire\Admins\Departments::class)->name('departments');

        Route::get('/employees', App\Http\Livewire\Admins\Employees::class)->name('employees');

        Route::get('/appointment', App\Http\Livewire\Admins\Appiontment::class)->name('appointment');

        Route::get('/blocks', App\Http\Livewire\Admins\Blocks::class)->name('blocks');

        Route::get('/admin/hods', App\Http\Livewire\Admins\Hods::class)->name('hods');

        Route::get('/admin/requestedappointments', App\Http\Livewire\Admins\RequestedAppointments::class)->name('requestedAppointment');

        Route::get('/subscribers', App\Http\Livewire\Admins\Subscibers::class)->name('subscibers');

        Route::get('/contactedus', App\Http\Livewire\Admins\Contactedus::class)->name('contactedus');
    });
});






Auth::routes();

// Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
