preparations done

This commit is contained in:
2025-06-05 10:53:57 +05:45
parent b3e543863a
commit 18e5f8f173
11 changed files with 253 additions and 31 deletions

View File

@ -8,6 +8,7 @@
<a href="{{ route('employees.index') }}" class="btn btn-secondary">Manage Employees</a>
<a href="{{ route('posts.index') }}" class="btn btn-secondary">Manage Posts</a>
<a href="{{ route('sliders.index') }}" class="btn btn-secondary">Manage Sliders</a>
<a href="{{ route('preparations.index') }}" class="btn btn-secondary">Manage Preparations</a>
</div>
</div>
@endsection

View File

@ -3,7 +3,7 @@
@section('content')
@include('frontend.header')
@include('frontend.partials.slider', ['sliderItems' => $sliderItems])
{{-- @include('frontend.partials.preparation', ['preparations' => $preparations]) --}}
@include('frontend.partials.preparation', ['preparations' => $preparations])
{{-- @include('frontend.partials.service', ['services' => $services]) --}}
{{-- @include('frontend.partials.about', ['about' => $about]) --}}
{{-- @include('frontend.partials.contact', ['contact' => $contact]) --}}

View File

@ -0,0 +1,108 @@
<!--site-main start-->
<div class="site-main">
{{-- @dd($preparations) --}}
<!--welcome-section-->
<section class="ttm-row welcome-section ttm-bgcolor-grey clearfix">
<div class="container-fluid">
<div class="row plr15 res-1199-pl-0 res-1199-pr-0">
@foreach($preparations as $preparation)
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 abc">
<!-- featured-iconbox -->
<div class="featured-icon-box icon-align-before-content style19">
<!-- featured-icon -->
<div class="featured-icon">
<div class="ttm-icon ttm-icon_element-size-lg ttm-icon_element-onlytxt ttm-icon_element-color-skincolor">
<i class="flaticon flaticon-heart-5"></i>
</div>
</div>
<!-- featured-icon end-->
<!-- featured-content -->
<div class="featured-content">
<div class="featured-title">
<h3><a href="about.php" tabindex="0">{{$preparation->title}}</a></h3>
</div>
<div class="featured-desc">
<p> {{$preparation->content}}</p>
</div>
</div><!-- featured-content-end -->
<div class="featured-bottom">
<a class="" href="about.php" tabindex="0"><i class="ti ti-arrow-top-right"></i></a>
</div>
</div><!-- featured-iconbox-end -->
</div>
@endforeach
{{-- <div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 abc">
<!-- featured-iconbox -->
<div class="featured-icon-box icon-align-before-content style19">
<!-- featured-icon -->
<div class="featured-icon">
<div class="ttm-icon ttm-icon_element-size-lg ttm-icon_element-onlytxt ttm-icon_element-color-skincolor">
<i class="flaticon flaticon-doctor-1"></i>
</div>
</div>
<!-- featured-icon end-->
<!-- featured-content -->
<div class="featured-content">
<div class="featured-title">
<h3><a href="about.php" tabindex="0">CGFNS preparation</a></h3>
</div>
<div class="featured-desc">
<p>(Comission on Graduates of Foreign Nursing Schools) is to serve the global community through programs and services that verify and promote the knowledge- based practice competency of healthcare professionals.</p>
</div>
</div><!-- featured-content-end -->
<div class="featured-bottom">
<a class="" href="about.php" tabindex="0"><i class="ti ti-arrow-top-right"></i></a>
</div>
</div><!-- featured-iconbox-end -->
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 abc">
<!-- featured-iconbox -->
<div class="featured-icon-box icon-align-before-content style19">
<!-- featured-icon -->
<div class="featured-icon">
<div class="ttm-icon ttm-icon_element-size-lg ttm-icon_element-onlytxt ttm-icon_element-color-skincolor">
<i class="flaticon flaticon-defribillator"></i>
</div>
</div>
<!-- featured-icon end-->
<!-- featured-content -->
<div class="featured-content">
<div class="featured-title">
<h3><a href="about.php" tabindex="0">OET preparation</a></h3>
</div>
<div class="featured-desc">
<p>OET is an English language test for healthcare professionals recognized by various regulatory healthcare bodies. It assesses the language communication skills of healthcare professionals who wish to register and practice in an English- speaking environment.</p>
</div>
</div><!-- featured-content-end -->
<div class="featured-bottom">
<a class="" href="about.php" tabindex="0"><i class="ti ti-arrow-top-right"></i></a>
</div>
</div><!-- featured-iconbox-end -->
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 abc">
<!-- featured-iconbox -->
<div class="featured-icon-box icon-align-before-content style19">
<!-- featured-icon -->
<div class="featured-icon">
<div class="ttm-icon ttm-icon_element-size-lg ttm-icon_element-onlytxt ttm-icon_element-color-skincolor">
<i class="flaticon flaticon-cardiology-2"></i>
</div>
</div>
<!-- featured-icon end-->
<!-- featured-content -->
<div class="featured-content">
<div class="featured-title">
<h3><a href="about.php" tabindex="0">OBA preparation</a></h3>
</div>
<div class="featured-desc">
<p>OBA is also referred to as an aunthentic assessment in the sense that the assessment is realistic. It is basically the assessment process for Internationally Qualified Nurses and Midwives (IQNMS) with an international nursing qualification to be a registered nurse.</p>
</div>
</div><!-- featured-content-end -->
<div class="featured-bottom">
<a class="" href="about.php" tabindex="0"><i class="ti ti-arrow-top-right"></i></a>
</div>
</div><!-- featured-iconbox-end -->
</div> --}}
</div>
</div>
</section><!--welcome-section end-->

View File

@ -44,6 +44,9 @@
<li class="nav-item">
<a class="nav-link" href="{{ route('sliders.index') }}">Sliders</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('preparations.index') }}">Preparations</a>
</li>
</ul>
<ul class="navbar-nav ms-auto">

View File

@ -0,0 +1,24 @@
@extends('layouts.app')
@section('content')
<div class="container">
<h1>Create New Preparation</h1>
<form method="POST" action="{{ route('preparations.store') }}">
@csrf
<div class="mb-3">
<label class="form-label">Title</label>
<input type="text" name="title" class="form-control" required>
</div>
<div class="mb-3">
<label class="form-label">Content</label>
<textarea name="content" class="form-control" rows="3" required></textarea>
</div>
<button class="btn btn-success">Save</button>
<a href="{{ route('preparations.index') }}" class="btn btn-secondary">Cancel</a>
</form>
</div>
@endsection

View File

@ -0,0 +1,24 @@
@extends('layouts.app')
@section('content')
<div class="container">
<h1>Edit Preparation</h1>
<form method="POST" action="{{ route('preparations.update', $preparation->id) }}">
@csrf @method('PUT')
<div class="mb-3">
<label class="form-label">Title</label>
<input type="text" name="title" class="form-control" value="{{ $preparation->title }}" required>
</div>
<div class="mb-3">
<label class="form-label">Content</label>
<textarea name="content" class="form-control" rows="5" required>{{ $preparation->content }}</textarea>
</div>
<button class="btn btn-success">Update</button>
<a href="{{ route('preparations.index') }}" class="btn btn-secondary">Cancel</a>
</form>
</div>
@endsection

View File

@ -0,0 +1,41 @@
@extends('layouts.app')
@section('content')
<div class="container">
<h1>Preparations</h1>
<a href="{{ route('preparations.create') }}" class="btn btn-primary mb-3">Create New Preparation</a>
@if(session('success'))
<div class="alert alert-success">{{ session('success') }}</div>
@endif
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Content</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@forelse($preparations as $preparation)
<tr>
<td>{{ $preparation->title }}</td>
<td>{{ \Illuminate\Support\Str::limit($preparation->content, 50) }}</td>
<td>
<a href="{{ route('preparations.show', $preparation->id) }}" class="btn btn-sm btn-info">View</a>
<a href="{{ route('preparations.edit', $preparation->id) }}" class="btn btn-sm btn-warning">Edit</a>
<form action="{{ route('preparations.destroy', $preparation->id) }}" method="POST" style="display:inline-block">
@csrf @method('DELETE')
<button class="btn btn-sm btn-danger" onclick="return confirm('Delete this preparation?')">Delete</button>
</form>
</td>
</tr>
@empty
<tr><td colspan="3">No preparations found.</td></tr>
@endforelse
</tbody>
</table>
</div>
@endsection

View File

@ -0,0 +1,14 @@
@extends('layouts.app')
@section('content')
<div class="container">
<h1>{{ $preparation->title }}</h1>
<div class="mb-4">
<p>{{ $preparation->content }}</p>
</div>
<a href="{{ route('preparations.edit', $preparation->id) }}" class="btn btn-warning">Edit</a>
<a href="{{ route('preparations.index') }}" class="btn btn-secondary">Back</a>
</div>
@endsection