firstcommit

This commit is contained in:
2025-08-17 16:23:14 +05:45
commit 76bf4c0a18
2648 changed files with 362795 additions and 0 deletions

View File

@@ -0,0 +1,119 @@
@extends('admin::layouts.master')
@section('title')
Appointment
@endsection
@section('breadcrumb')
@php
$breadcrumbData = [
[
'title' => 'Appointment',
'link' => 'null',
],
[
'title' => 'Dashboard',
'link' => route('dashboard'),
],
[
'title' => 'Appointments',
'link' => null,
],
];
@endphp
@include('admin::layouts.partials.breadcrumb', $breadcrumbData)
@endsection
@section('content')
<!-- banners List Table -->
<div class="card">
<div class="row">
<div class="col-md-6">
<h4 class="card-header">List of Appointment</h4>
</div>
</div>
<div class="card-datatable table-responsive">
<table class="table">
<thead class="table-light">
<tr>
<th>S.N</th>
<th>Full Name With Subject</th>
<th>Doctor</th>
<th>Contact No.</th>
<th>Email</th>
<th>Created At</th>
<th>Actions</th>
</tr>
</thead>
<tbody class="table-border-bottom-0">
@if ($appointmentCount > 0)
@foreach ($appointments ?? [] as $appointment)
<tr>
<td>
#{{ $loop->iteration }}
</td>
<td>
<div class="d-flex align-items-center me-3">
<div class="card-title mb-0 px-3">
<h6 class="mb-0"> {{ $appointment->full_name }}</h6>
<small class="text-muted">{{ Str::limit($appointment->subject, 80) }}</small>
</div>
</div>
</td>
<td>
{{ optional($appointment->doctorDetail)->name }}
</td>
<td>
{{ $appointment->contact_no }}
</td>
<td>
{{ $appointment->email }}
</td>
<td>
{{ $appointment->created_at->toFormattedDateString() }}
</td>
<td>
<div class="d-flex">
<form method="POST"
action="{{ route('cms.appointment.show', ['uuid' => $appointment->uuid]) }}"
class="dropdown-item">
@csrf
<button type="submit" class="border-0 bg-transparent viewBtn"
style="color:inherit"><i class="bx bx-show-alt me-1"></i></button>
</form>
<form method="POST"
action="{{ route('cms.appointment.delete', ['uuid' => $appointment->uuid]) }}"
id="deleteForm_{{ $appointment->uuid }}" class="dropdown-item">
@csrf
@method('DELETE')
<button type="submit" class="border-0 bg-transparent deleteBtn"
style="color:inherit"><i class="bx bx-trash me-1"></i></button>
</form>
</div>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="7">No record found.</td>
</tr>
@endif
</tbody>
</table>
</div>
<div class="px-3">
{{-- {{ $appointment->links('admin::layouts.partials.pagination') }} --}}
</div>
</div>
@endsection
{{-- style --}}
@push('required-styles')
@include('admin::vendor.dataTables.style')
@endpush
{{-- script --}}
@push('required-scripts')
@include('admin::vendor.dataTables.script')
@endpush

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Appointment Module - {{ config('app.name', 'Laravel') }}</title>
<meta name="description" content="{{ $description ?? '' }}">
<meta name="keywords" content="{{ $keywords ?? '' }}">
<meta name="author" content="{{ $author ?? '' }}">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
{{-- Vite CSS --}}
{{-- {{ module_vite('build-appointment', 'resources/assets/sass/app.scss') }} --}}
</head>
<body>
@yield('content')
{{-- Vite JS --}}
{{-- {{ module_vite('build-appointment', 'resources/assets/js/app.js') }} --}}
</body>

View File

@@ -0,0 +1,77 @@
@extends('admin::layouts.master')
@section('title')
Appointment Message
@endsection
@section('breadcrumb')
@php
$breadcrumbData = [
[
'title' => 'Appointment Message',
'link' => 'null',
],
[
'title' => 'Dashboard',
'link' => route('dashboard'),
],
[
'title' => 'Appointment Message',
'link' => null,
],
];
@endphp
@include('admin::layouts.partials.breadcrumb', $breadcrumbData)
@endsection
@section('content')
<!-- banners List Table -->
<div class="card">
<div class="row">
<div class="col-md-6">
<h4 class="card-header">Appointment Message</h4>
</div>
</div>
<div class="card">
<div class="card-header">
<h5> Appointment Requested By {{ $appointment->full_name ?? 'N/A' }}</h5>
</div>
<div class="modal-body">
<table class="table">
<tbody>
<tr>
<th>Name:</th>
<td>{{ $appointment->full_name ?? 'N/A' }}</td>
</tr>
<tr>
<th>Email:</th>
<td>{{ $appointment->email ?? 'N/A' }}</td>
</tr>
<tr>
<th>Contact No.:</th>
<td>{{ $appointment->contact_no ?? 'N/A' }}</td>
</tr>
<tr>
<th>Doctor:</th>
<td>{{ $appointment->doctorDetail->name ?? 'N/A' }}</td>
</tr>
<tr>
<th>Subject:</th>
<td>{{ $appointment->subject ?? 'N/A' }}</td>
</tr>
<tr>
<th>Message:</th>
<td>{{ $appointment->feedback ?? 'N/A' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer">
<a href="{{ route('cms.appointment.index') }}" class="btn btn-secondary">Close</a>
</div>
</div>
</div>
@endsection