firstcommit
This commit is contained in:
0
Modules/Consultation/resources/assets/.gitkeep
Normal file
0
Modules/Consultation/resources/assets/.gitkeep
Normal file
0
Modules/Consultation/resources/assets/js/app.js
Normal file
0
Modules/Consultation/resources/assets/js/app.js
Normal file
0
Modules/Consultation/resources/assets/sass/app.scss
Normal file
0
Modules/Consultation/resources/assets/sass/app.scss
Normal file
0
Modules/Consultation/resources/views/.gitkeep
Normal file
0
Modules/Consultation/resources/views/.gitkeep
Normal file
125
Modules/Consultation/resources/views/index.blade.php
Normal file
125
Modules/Consultation/resources/views/index.blade.php
Normal file
@@ -0,0 +1,125 @@
|
||||
@extends('admin::layouts.master')
|
||||
|
||||
@section('title')
|
||||
Consultation
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbData = [
|
||||
[
|
||||
'title' => 'Consultation',
|
||||
'link' => 'null',
|
||||
],
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'link' => route('dashboard'),
|
||||
],
|
||||
[
|
||||
'title' => 'Consultations',
|
||||
'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 Consultation</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>S.N</th>
|
||||
<th>Name With Subject</th>
|
||||
<th>Age</th>
|
||||
<th>Procedure</th>
|
||||
<th>Contact No.</th>
|
||||
<th>Email</th>
|
||||
<th>Created At</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-border-bottom-0">
|
||||
@if ($consultationCount > 0)
|
||||
@foreach ($consultations ?? [] as $consultation)
|
||||
<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"> {{ $consultation->name }}</h6>
|
||||
<small class="text-muted">{{ Str::limit($consultation->subject, 50) }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ $consultation->ageGroupOption() }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $consultation->procedureOfInterestOption() }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $consultation->contact_no }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $consultation->email }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $consultation->created_at->toFormattedDateString() }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="d-flex">
|
||||
<form method="POST"
|
||||
action="{{ route('cms.consultation.show', ['uuid' => $consultation->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.consultation.delete', ['uuid' => $consultation->uuid]) }}"
|
||||
id="deleteForm_{{ $consultation->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">
|
||||
{{-- {{ $consultation->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
|
@@ -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>Consultation 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-consultation', 'resources/assets/sass/app.scss') }} --}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@yield('content')
|
||||
|
||||
{{-- Vite JS --}}
|
||||
{{-- {{ module_vite('build-consultation', 'resources/assets/js/app.js') }} --}}
|
||||
</body>
|
81
Modules/Consultation/resources/views/show.blade.php
Normal file
81
Modules/Consultation/resources/views/show.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('admin::layouts.master')
|
||||
|
||||
@section('title')
|
||||
Consultation Message
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbData = [
|
||||
[
|
||||
'title' => 'Consultation Message',
|
||||
'link' => 'null',
|
||||
],
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'link' => route('dashboard'),
|
||||
],
|
||||
[
|
||||
'title' => 'Consultation 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">Consultation Message</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5> Consultated By {{ $consultation->name ?? 'N/A' }}</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Name:</th>
|
||||
<td>{{ $consultation->name ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Email:</th>
|
||||
<td>{{ $consultation->email ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Contact No.:</th>
|
||||
<td>{{ $consultation->contact_no ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Age Group:</th>
|
||||
<td>{{ $consultation->ageGroupOption() ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Procedure of Interest:</th>
|
||||
<td>{{ $consultation->procedureOfInterestOption() ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<td>{{ $consultation->subject ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Message:</th>
|
||||
<td>{{ $consultation->message ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="{{ route('cms.consultation.index') }}" class="btn btn-secondary">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
Reference in New Issue
Block a user