@extends('front.layouts.master') @section('content')
icon==null)) data-background="{{ asset('front_assets/assets/img/hero/about.jpg') }}" @else data-background="/storage/app/public/{{ $page->icon }}" @endif>
@if($page->name !=="Gallery") @if($page->name !=="Blog")

{{ $page->short_description }}

{!! $page->description !!}

@endif @endif @php $sub_child_pages=App\Models\Page::where('parent_id',$page->id)->where('status',1)->orderby('weight','asc')->get(); @endphp @if(isset($sub_child_pages)) @if($sub_child_pages->count() > 0)

{{ $page->name }}

{{ $page->name }}
@foreach($sub_child_pages as $sub_child_page)

{{ $sub_child_page->name }}

{{ $sub_child_page->short_description }}

Read More
@endforeach
@endif @endif @if($page->name=="Gallery") @php $medias=App\Models\Media::where('status',1)->where('gallery_type','image')->orderBy('weight','asc')->get(); @endphp
@if(isset($medias))

Image Gallery

@endif @endif @if($page->name=="Blog") @php $blogs=App\Models\Blog::where('status',1)->OrderBy('weight','asc')->simplePaginate(3); @endphp
@foreach($blogs as $blog) @endforeach {{ $blogs->appends(['search' => request()->query('search')]) ->links() }}
@php $categories=App\Models\Category::all(); @endphp @php $tags=App\Models\Tag::all(); $popular_blogs=App\Models\Blog::where('blog_type','popular')->where([['status',1]])->OrderBy('weight','asc')->take(4)->get(); @endphp
@endif
@endsection