service-detail

aplus#17
Mahesh Sharma 2 years ago
parent 12e28b6465
commit 9cf20e3473
  1. 18
      app/Http/Controllers/ServiceController.php
  2. 33
      database/migrations/2022_07_29_073833_add_des_icon_to_service_section_points_table.php
  3. BIN
      public/images/service/2022/12/12/2e7cf0a19e110c225e5e59036bfda111.png
  4. 10
      public/images/service/2022/12/12/74bac73aa8868da051c9b1b09825d276.svg
  5. BIN
      public/images/service/2022/12/12/988fd7d130966b1682f7a08e478aec74.jpeg
  6. 20
      resources/views/layout/app.blade.php
  7. 47
      resources/views/service_view.blade.php

@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use App\Models\Service;
use App\Models\Accomodation;
use Illuminate\Http\Request;
class ServiceController extends Controller
{
public function single_service($slug){
$service = Service::where(['slug' => $slug,'status' => 1])->orderby('order_by','asc')->first();
$services = Service::where('status',1)->get();
// $accomodations = Accomodation::where('status',1)->get();
return view('service_view',compact('service','services'));
}
}

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddDesIconToServiceSectionPointsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('service_section_points', function (Blueprint $table) {
$table->string('point_description')->nullable();
$table->string('icon')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('service_section_points', function (Blueprint $table) {
//
});
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,10 @@
<svg width="90" height="90" viewBox="0 0 90 90" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="90" height="90" rx="4" fill="#262535"/>
<path d="M17.5 65.4248C17.6953 60.5412 18.3204 45.7194 19.2581 41.5C20.4301 36.2258 29.8065 35.6398 32.7366 39.742C35.6667 43.8441 34.8283 46.606 36.8387 47.9463C38.5968 49.1183 41.5269 49.1183 43.2849 49.1183C46.0757 49.1183 47.9362 50.5802 48.2334 52.0484C49.514 52.2438 52.3097 52.6344 53.2473 52.6344C54.4194 52.6344 55.0054 54.3925 53.2473 54.3925C50.9032 54.3925 48.3638 54.2004 47.3871 54.1044C46.5253 54.752 45.006 55.1433 42.6989 54.9785C39.7688 54.9785 35.7844 54.8224 32.7366 53.8065C30.9785 53.2205 28.6344 49.1183 28.0484 47.9463C27.4624 46.7742 25.7043 50.2904 28.0484 52.6344C30.3925 54.9785 32.7366 60.7366 32.7366 63.6667C32.7366 66.5968 22.5789 65.8154 17.5 65.4248Z" fill="#E54E2E"/>
<path d="M60.2796 42.0861C58.5215 43.2581 55.5914 45.0162 55.0054 47.3603L63.7957 50.8764C61.2563 54.1972 63.0376 60.7366 60.1075 64.8387C64.7957 66.0108 69.6792 65.2294 73 65.4248C72.6093 62.2993 70.5935 50.9936 69.6559 46.7742C68.4839 41.5001 62.0376 40.914 60.2796 42.0861Z" fill="#F0EFFD"/>
<path d="M50.9029 58.1505C49.7309 58.1505 46.2147 57.5645 42.6988 58.7366C41.1361 60.4946 39.1823 64.0107 48.5589 64.0107C59.1071 64.0107 58.523 62.8424 57.9379 61.6721L57.9352 61.6666C56.7633 59.3226 52.075 58.1505 50.9029 58.1505Z" fill="#F0EFFD"/>
<path d="M54.4196 49.1183C53.8338 50.2903 52.0755 53.2204 51.4895 54.3924C50.5941 56.1505 53.2475 56.7365 53.8336 56.1505C54.4196 55.5645 55.5916 52.0484 56.1776 50.8763C56.7634 49.1183 55.0053 47.9462 54.4196 49.1183Z" fill="#F0EFFD"/>
<path d="M57.935 50.8764C57.3493 52.0484 56.7631 54.3925 56.177 55.5645C55.2817 57.3226 58.7041 58.3804 59.2901 57.7943C59.8762 57.2083 61.0482 53.6922 61.6342 52.5201C62.22 50.7621 58.5208 49.7043 57.935 50.8764Z" fill="#F0EFFD"/>
<circle cx="30.9785" cy="26.0215" r="7.03226" fill="#E54E2E"/>
<circle cx="56.7634" cy="31.8817" r="7.03226" fill="#F0EFFD"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

@ -30,6 +30,12 @@
@yield('title') @yield('title')
</head> </head>
<body> <body>
@php
$services = \App\Models\Service::where('status','1')->orderByRaw('CONVERT(order_by, SIGNED) asc')->get();
$facebook = App\Models\Setting::where(['slug' => 'facebook-link','status' => true])->first();
$instagram = App\Models\Setting::where(['slug' => 'instagram-link','status' => true])->first();
$linkedIn = App\Models\Setting::where(['slug' => 'linkedin-link','status' => true])->first();
@endphp
<header class="header" id="dice-nav-head"> <header class="header" id="dice-nav-head">
<a class="navbar-brand" id="navbar-brand" href="{{url('/')}}"> <a class="navbar-brand" id="navbar-brand" href="{{url('/')}}">
<img src="{{ App\Models\Setting::where('slug', 'logo')->first()->value ?? ''}}" class="img-fluid logo" alt=""> <img src="{{ App\Models\Setting::where('slug', 'logo')->first()->value ?? ''}}" class="img-fluid logo" alt="">
@ -43,8 +49,11 @@
Services Services
</a> </a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown"> <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="/service_view">Skill Assessment</a></li> @foreach($services as $service)
<li><a class="dropdown-item" href="/service_detail">Permanent Work Visa</a></li> <li><a class="dropdown-item" href="{{url('/service/'.$service->slug)}}">{{$service->name}}</a></li>
@endforeach
<!-- <li><a class="dropdown-item" href="/service_view">Skill Assessment</a></li>
<li><a class="dropdown-item" href="/service_detail">Permanent Work Visa</a></li> -->
</ul> </ul>
</li> </li>
<li class="nav-item"> <li class="nav-item">
@ -59,12 +68,7 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link pr-0" href="{{url('/contact')}}">Contact</a> <a class="nav-link pr-0" href="{{url('/contact')}}">Contact</a>
</li> </li>
@php
$services = \App\Models\Service::where('status','1')->orderByRaw('CONVERT(order_by, SIGNED) asc')->get();
$facebook = App\Models\Setting::where(['slug' => 'facebook-link','status' => true])->first();
$instagram = App\Models\Setting::where(['slug' => 'instagram-link','status' => true])->first();
$linkedIn = App\Models\Setting::where(['slug' => 'linkedin-link','status' => true])->first();
@endphp
<li class="nav-socials"> <li class="nav-socials">
@if(!is_null($facebook)) @if(!is_null($facebook))
<a href="{{$facebook->value}}" target="_blank"> <a href="{{$facebook->value}}" target="_blank">

@ -1,13 +1,15 @@
@extends('layout.app') @extends('layout.app')
@section('title') @section('title')
<title>Skill Assessment</title> <title>{{$service->name}}</title>
@endsection @endsection
@section('content') @section('content')
<section class="service-detail-banner"> <section class="service-detail-banner">
<div class="service-detail-desc"> <div class="service-detail-desc">
<h2>Skill Assessment</h2> <h2>{{$service->name}}</h2>
</div> </div>
</section> </section>
@php $service_sections = $service->service_sections()->orderby('order_by','asc')->get(); @endphp
@if($service_sections->count() > 0)
<section class="service-primary"> <section class="service-primary">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
@ -17,54 +19,63 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="service-primary-desc"> <div class="service-primary-desc">
<h5><img src="{{url('frontend/icons/double-slash.svg')}}" alt=""> Skill Assessment</h5> <h5><img src="{{url($service_sections->first()->image ?? '')}}" alt=""> Skill Assessment</h5>
<h3>Pathway to Skill Recognition</h3> <h3>{{$service_sections->first()->title}}</h3>
<p>Our training programme based on occupational training allows students to improve their skills for the right job.</p> <p>{{$service_sections->first()->description}}</p>
<ul> <ul>
<li>Lorem ipsum dolor sit amet consectetur adipisicing elit.</li> @foreach($service_sections->first()->service_section_point() as $service_section_point)
<li>Voluptas, eveniet consectetur blanditiis ut dolor officiis porro omnis! Maiores atque esse vero numquam quod.</li> <li>{{$service_section_point->point}}</li>
<li>Laudantium aperiam, ipsa odio repellendus libero cumque.</li> <!-- <li>Voluptas, eveniet consectetur blanditiis ut dolor officiis porro omnis! Maiores atque esse vero numquam quod.</li>
<li>Laudantium aperiam, ipsa odio repellendus libero cumque.</li> -->
@endforeach
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
@if($service_sections->count() > 1)
@php $second_service = $service_sections[1];@endphp
<section class="service-secondary"> <section class="service-secondary">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="service-secondary-img"> <div class="service-secondary-img">
<img src="{{url('frontend/images/test-img.png')}}" class="w-100" alt=""> <img src="{{url($second_service->image ?? '')}}" class="w-100" alt="">
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="service-secondary-desc"> <div class="service-secondary-desc">
<h5><hr> Skill Assessment</h5> <h5><hr> {{$service->name}}</h5>
<h3>Pathway to Skill Recognition</h3> <h3>{{$second_service->title}}</h3>
<p>Our training programme based on occupational training allows students to improve their skills for the right job.</p> <p>{{$second_service->description}}</p>
<a href="/">Book An Appointment</a> <a href="/">Book An Appointment</a>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
@endif
@if($service_sections->count() > 2)
@php $third_service = $service_sections[2];@endphp
<section class="service-view-last"> <section class="service-view-last">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="service-primary-desc"> <div class="service-primary-desc">
<h5><img src="{{url('frontend/icons/double-slash.svg')}}" alt=""> Skill Assessment</h5> <h5><img src="{{url('frontend/icons/double-slash.svg')}}" alt=""> Skill Assessment</h5>
<h3>Pathway to Skill Recognition</h3> <h3>{{$third_service->title}}</h3>
<p>Our training programme based on occupational training allows students to improve their skills for the right job.</p> <p>{{$third_service->description}}</p>
<ul> <ul>
<li>Lorem ipsum dolor sit amet consectetur adipisicing elit.</li> @foreach($third_service->service_section_point() as $section_point)
<li>Voluptas, eveniet consectetur blanditiis ut dolor officiis porro omnis! Maiores atque esse vero numquam quod.</li> <li>{{$section_point->point}}</li>
<li>Laudantium aperiam, ipsa odio repellendus libero cumque.</li> @endforeach
</ul> </ul>
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="service-last-img"> <div class="service-last-img">
<img src="{{url('frontend/images/test-img.png')}}" class="w-100" alt=""> <img src="{{url($third_service->image)}}" class="w-100" alt="">
</div> </div>
</div> </div>
</div> </div>
</section> </section>
@endif
@endif
@endsection @endsection
Loading…
Cancel
Save