service-section-setup

et#4
Mahesh Sharma 2 years ago
parent 6a39b2f9b0
commit b2246f23aa
  1. 2
      app/Http/Controllers/Admin/ServiceController.php
  2. 8
      app/Http/Controllers/Admin/ServiceSectionController.php
  3. 14
      app/Http/Controllers/StudyAbroadController.php
  4. BIN
      public/images/service/2023/01/23/19f19c14a67dee0143c69de217a486bb.png
  5. BIN
      public/images/service/2023/01/23/3f48d57f2b867596704071e96e5852ac.png
  6. BIN
      public/images/service/2023/01/23/6f2034ed3d72cd4c1557e41027672448.png
  7. BIN
      public/images/service/2023/01/23/bf3a8fcd05d8721ac31c4c80e0996308.png
  8. BIN
      public/images/service/2023/01/23/dcc159dbc890c57052856338f6c6d8ea.png
  9. BIN
      public/images/visa_service/2023/01/23/63638b52aa4d9cad02ccef19d4601e8d.png
  10. BIN
      public/images/visa_service/2023/01/23/75e38195942c186526fecdcb46bce904.jpeg
  11. 2
      resources/views/admin/service_section/index.blade.php
  12. 2
      resources/views/admin/setting/index.blade.php
  13. 14
      routes/web.php

@ -76,7 +76,7 @@ class ServiceController extends Controller
$service->keywords = \request('keywords'); $service->keywords = \request('keywords');
// $service->icon = \request('icon'); // $service->icon = \request('icon');
$service->meta_keywords = strip_tags(\request('meta_keywords')); $service->meta_keywords = strip_tags(\request('meta_keywords'));
$service->short_description = strip_tags(\request('short_description')); $service->short_description = (\request('short_description'));
// $service->point_title = \request('point_title'); // $service->point_title = \request('point_title');
// $service->description_title = \request('description_title'); // $service->description_title = \request('description_title');
$service->status = \request('status'); $service->status = \request('status');

@ -73,8 +73,8 @@ class ServiceSectionController extends Controller
$service_section->title = \request('title'); $service_section->title = \request('title');
$service_section->sub_title = \request('sub_title'); $service_section->sub_title = \request('sub_title');
$service_section->description = strip_tags(\request('description')); $service_section->description = (\request('description'));
$service_section->sub_description = strip_tags(\request('sub_description')); $service_section->sub_description = (\request('sub_description'));
$service_section->service_id = $id; $service_section->service_id = $id;
$service_section->status = \request('status'); $service_section->status = \request('status');
$service_section->order_by = \request('order_by'); $service_section->order_by = \request('order_by');
@ -186,8 +186,8 @@ class ServiceSectionController extends Controller
$service_section = ServiceSection::findOrFail($secId); $service_section = ServiceSection::findOrFail($secId);
$service_section->title = \request('title'); $service_section->title = \request('title');
$service_section->sub_title = \request('sub_title'); $service_section->sub_title = \request('sub_title');
$service_section->description = strip_tags(\request('description')); $service_section->description = (\request('description'));
$service_section->sub_description = strip_tags(\request('sub_description')); $service_section->sub_description = (\request('sub_description'));
$service_section->service_id = $id; $service_section->service_id = $id;
$service_section->status = \request('status'); $service_section->status = \request('status');
$service_section->order_by = \request('order_by'); $service_section->order_by = \request('order_by');

@ -0,0 +1,14 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Service;
class StudyAbroadController extends Controller
{
public function study_abroad(){
$services = Service::where('status',1)->get();
return view('study-abroad',compact('services'));
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

@ -74,7 +74,7 @@
Image not available Image not available
@endif @endif
</td> </td>
<td class="text-center">{{$section->description}}</td> <td class="text-center">{!!$section->description!!}</td>
<td class="text-center">{{$section->order_by}}</td> <td class="text-center">{{$section->order_by}}</td>
<td class="text-center">{{config('custom.status')[$section->status]}}</td> <td class="text-center">{{config('custom.status')[$section->status]}}</td>

@ -71,7 +71,7 @@
@if($setting->type == array_search('Image',config('custom.setting_types'))) @if($setting->type == array_search('Image',config('custom.setting_types')))
<td> <td>
<a href="{{url($setting->value)}}" class="admin-table" target="_blank"> <a href="{{url($setting->value)}}" class="admin-table" target="_blank">
<img src="{{url($setting->value)}}" alt=""> <img src="{{url($setting->value)}}" class = "img-fluid" alt="">
</a> </a>
</td> </td>
@else @else

@ -13,6 +13,7 @@ use App\Http\Controllers\Admin\ContactUsController;
use App\Http\Controllers\Admin\EnrollmentController; use App\Http\Controllers\Admin\EnrollmentController;
use App\Http\Controllers\Admin\GalleryController; use App\Http\Controllers\Admin\GalleryController;
use App\Http\Controllers\HomeController; use App\Http\Controllers\HomeController;
use App\Http\Controllers\StudyAbroadController;
use App\Http\Controllers\Admin\HomeController as HomeAdminController; use App\Http\Controllers\Admin\HomeController as HomeAdminController;
use App\Http\Controllers\Admin\SliderController; use App\Http\Controllers\Admin\SliderController;
use App\Http\Controllers\Admin\PartnerController; use App\Http\Controllers\Admin\PartnerController;
@ -48,6 +49,12 @@ Route::get('/', [HomeController::class,'index'])->name('home.index');
Route::get('login', [HomeAdminController::class,'getLogin'])->name('login'); Route::get('login', [HomeAdminController::class,'getLogin'])->name('login');
Route::post('login', [HomeAdminController::class,'postLogin']); Route::post('login', [HomeAdminController::class,'postLogin']);
Route::get('study-abroad', [StudyAbroadController::class,'study_abroad']);
Route::get('/study-abroad-detail', function () {
return view('study-abroad-detail');
});
Route::group(['middleware'=>['auth']],function (){ Route::group(['middleware'=>['auth']],function (){
//routes for admin //routes for admin
Route::group(['prefix'=>'admin'],function (){ Route::group(['prefix'=>'admin'],function (){
@ -255,11 +262,6 @@ Route::group(['middleware'=>['auth']],function (){
}); });
}); });
Route::get('/study-abroad', function () {
return view('study-abroad');
});
Route::get('/study-abroad-detail', function () {
return view('study-abroad-detail');
});

Loading…
Cancel
Save