feat: Add FAQs field to Country model and update form for extra FAQs input
This commit is contained in:
@@ -23,6 +23,7 @@ class Country extends Model
|
||||
'slug',
|
||||
'short_description',
|
||||
'description',
|
||||
'faqs',
|
||||
'image',
|
||||
'parent_id',
|
||||
'images',
|
||||
@@ -104,5 +105,4 @@ class Country extends Model
|
||||
{
|
||||
return $this->morphMany(Document::class, 'documentable');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('countries', function (Blueprint $table) {
|
||||
$table->longText('faqs')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('countries', function (Blueprint $table) {
|
||||
$table->dropColumn('faqs');
|
||||
});
|
||||
}
|
||||
};
|
@@ -19,6 +19,11 @@
|
||||
{{ html()->span('*')->class('text-danger') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic')->placeholder('Enter Country Description')->required() }}
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
{{ html()->label('Extra FAQs')->class('form-label')->for('faqs') }}
|
||||
{{ html()->textarea('faqs')->class('form-control ckeditor-classic')->placeholder('Enter Extra FAQs')->required() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -87,13 +92,11 @@
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
{{ html()->label('Featured')->class('form-label')->for('image') }}
|
||||
<x-image-input :data="$editable ? $country->getRawOriginal('image') : null" id="image" name="image" :editable="$editable"
|
||||
:multiple=false />
|
||||
<x-image-input :data="$editable ? $country->getRawOriginal('image') : null" id="image" name="image" :editable="$editable" :multiple=false />
|
||||
</div>
|
||||
|
||||
{{ html()->label('Banner')->class('form-label')->for('banner') }}
|
||||
<x-image-input :data="$editable ? $country->getRawOriginal('banner') : null" id="banner" name="banner" :editable="$editable"
|
||||
:multiple=false />
|
||||
<x-image-input :data="$editable ? $country->getRawOriginal('banner') : null" id="banner" name="banner" :editable="$editable" :multiple=false />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -21,7 +21,7 @@
|
||||
<li class="px-20 tab-btn cursor-pointer fade {{ $loop->first ? 'show active' : '' }} "
|
||||
role="tabpanel" onclick="showTab('tabs_{{ $index + 1 }}')">
|
||||
<div class="text-17 font-bold flex gap-10 items-center">
|
||||
<p class="numbering">1</p>
|
||||
<p class="numbering">{{ $index + 1 }}</p>
|
||||
{{-- <img class="w-40" src="assets/images/icons/one.svg" alt=""> --}}
|
||||
<h5 class="text-16 p-0 m-0">{{ $child->title }}</h5>
|
||||
</div>
|
||||
@@ -176,109 +176,7 @@
|
||||
|
||||
|
||||
<div class="py-40">
|
||||
<div class="py-10">
|
||||
<h4 class="title-small">1. What is the average tuition, living, and
|
||||
health insurance cost in the USA?</h4>
|
||||
<p class="para"><strong>Bachelors: </strong>Tuition: $15,000–$35,000
|
||||
/ year</p>
|
||||
<p class="para"><strong>Bachelors: </strong>Tuition: $15,000–$35,000
|
||||
/ year</p>
|
||||
<p class="para-slant">Living: $8,000–$12,000/year | Health Insurance:
|
||||
$1,000–$2,000 / year</p>
|
||||
</div>
|
||||
<div class="py-10">
|
||||
<h4 class="title-small">2. What types of scholarships are available?
|
||||
</h4>
|
||||
<ul class="list-disc">
|
||||
<li class="para"><strong>Merit-based: </strong>Based on academic
|
||||
scores or test results</li>
|
||||
<li class="para"><strong>Merit-based: </strong>Based on academic
|
||||
scores or test results</li>
|
||||
<li class="para">Merit-based:Based on academic scores or test
|
||||
results</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="py-10">
|
||||
<h4 class="title-small">3. What types of scholarships are available?
|
||||
</h4>
|
||||
|
||||
<ol class="list-alpha">
|
||||
<li class="para"><strong>Merit-based: </strong>Based on academic
|
||||
scores or test results</li>
|
||||
<li class="para"><strong>Merit-based: </strong>Based on academic
|
||||
scores or test results</li>
|
||||
<li class="para">Merit-based:Based on academic scores or test
|
||||
results</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
<div class="py-10">
|
||||
<h4 class="title-small">4. What types of scholarships are available?
|
||||
</h4>
|
||||
|
||||
<ol class="list-alpha">
|
||||
<li class="para"><a class="text-sec underline" href="#"
|
||||
target="_blank"><strong>Merit-based: </strong>Based on
|
||||
academic
|
||||
scores or test results</a></li>
|
||||
<li class="para"><strong>Merit-based: </strong>Based on academic
|
||||
scores or test results</li>
|
||||
<li class="para">Merit-based:Based on academic scores or test
|
||||
results</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
<div class="py-10">
|
||||
<table class="tabs-table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td>Universities</td>
|
||||
<td>Annual Tuition Fee
|
||||
(Non-Eu/EEA)
|
||||
in Euro & Approximate in NPR</td>
|
||||
<td>Scholarships Available</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
University Of Copenhagen(UCPH)
|
||||
</td>
|
||||
<td>
|
||||
€10,000 – €17,000 OR
|
||||
NPR 1,350,000 – 2,295,000
|
||||
|
||||
</td>
|
||||
<td>
|
||||
Danish Government Scholarship (offered by the university
|
||||
on behalf of the Danish Ministry)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
University Of Copenhagen(UCPH)
|
||||
</td>
|
||||
<td>
|
||||
€10,000 – €17,000 OR
|
||||
NPR 1,350,000 – 2,295,000
|
||||
|
||||
</td>
|
||||
<td>
|
||||
Danish Government Scholarship (offered by the university
|
||||
on behalf of the Danish Ministry)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{{ $child->faqs ?? '' }}
|
||||
</div>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user