blogs
This commit is contained in:
89
resources/views/frontend/blog-details.blade.php
Normal file
89
resources/views/frontend/blog-details.blade.php
Normal file
@@ -0,0 +1,89 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
@include('frontend.header')
|
||||
<!-- page-title -->
|
||||
<div class="ttm-page-title-row">
|
||||
<div class="ttm-page-title-row-inner">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-12">
|
||||
<div class="page-title-heading">
|
||||
<h2 class="title">{{ $blog->title }}</h2>
|
||||
</div>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<div class="container">
|
||||
<div class="breadcrumb-wrapper-inner">
|
||||
<span><a href="{{ route('home')}}">Home</a></span>
|
||||
<span class="ttm-bread-sep"> / </span>
|
||||
<span>Blog</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- page-title-end -->
|
||||
|
||||
<!--site-main start-->
|
||||
<div class="site-main">
|
||||
|
||||
<section class="ttm-row blog-single-section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 content-area m-auto">
|
||||
<div class="post ttm-blog-single">
|
||||
<div class="ttm-blog-single-content">
|
||||
<div class="entry-content">
|
||||
<div class="ttm-box-desc-text">
|
||||
<div class="entry-header">
|
||||
<h3 class="entry-title">{{ $blog->subtitle1 }}</h3>
|
||||
</div>
|
||||
<p>{{ $blog->description1 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ttm-post-featured-wrapper ttm-featured-wrapper w-100">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ttm_single_image-wrapper">
|
||||
<img class="img-fluid" src="{{ asset('storage/' . $blog->image )}}" width="773" height="317" alt="blog-01">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ttm-blog-single-content mt-20 res-991-mt-20">
|
||||
<div class="entry-header">
|
||||
<h3 class="entry-title">{{ $blog->subtitle2 }}</h3>
|
||||
</div>
|
||||
<div class="entry-content">
|
||||
<p>{{ $blog->description2 }}</p>
|
||||
<div class="ttm-horizontal_sep style2 mt-40 res-991-mt-30"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="widget widget-recent-post clearfix">
|
||||
<h3 class="widget-title">Popular Posts</h3>
|
||||
<ul class="widget-post ttm-recent-post-list">
|
||||
@foreach($otherBlogs as $other)
|
||||
<li>
|
||||
<img class="img-fluid" src="{{ asset('storage/' . $other->image) }}" width="72" height="80" alt="post-img">
|
||||
<div class="post-detail">
|
||||
<a href="{{ route('frontend.blog-details', $other->id) }}">
|
||||
{{ Str::limit($other->title, 40) }}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!--site-main end-->
|
||||
@include('frontend.footer')
|
||||
@endsection
|
@@ -122,7 +122,6 @@
|
||||
</div><!-- page end -->
|
||||
|
||||
<!-- Javascript -->
|
||||
|
||||
<script src="{{asset('assets/js/jquery.min.js')}}"></script>
|
||||
<script src="{{asset('assets/js/jquery-migrate-1.4.1.min.js')}}"></script>
|
||||
<script src="{{asset('assets/js/tether.min.js')}}"></script>
|
||||
|
@@ -10,6 +10,6 @@
|
||||
@include('frontend.partials.testimonial', ['testimonials' => $testimonials])
|
||||
{{-- @include('frontend.partials.partners', ['partners' => $partners]) --}}
|
||||
{{-- @include('frontend.partials.passers', ['passers' => $passers]) --}}
|
||||
{{-- @include('frontend.partials.blog', ['blogs' => $blogs]) --}}
|
||||
@include('frontend.partials.blog', ['blogs' => $blogs])
|
||||
@include('frontend.footer')
|
||||
@endsection
|
||||
|
51
resources/views/frontend/partials/blog.blade.php
Normal file
51
resources/views/frontend/partials/blog.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<!-- about-section-->
|
||||
<section class="ttm-row about-section ttm-bgcolor-grey clearfix">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 m-auto">
|
||||
<!-- section title -->
|
||||
<div class="section-title title-style-center_text">
|
||||
<div class="title-header">
|
||||
<h3>READ OUR BLOG</h3>
|
||||
<h2 class="title mb-0">We Provide Special Service For Patients</h2>
|
||||
</div>
|
||||
</div><!-- section title end -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row slick_slider" data-slick='{"slidesToShow": 3, "slidesToScroll": 1, "arrows":false, "dots":false, "autoplay":false, "infinite":true, "responsive": [{"breakpoint":1100,"settings":{"slidesToShow": 3}} , {"breakpoint":991,"settings":{"slidesToShow": 2}}, {"breakpoint":767,"settings":{"slidesToShow": 2}},{"breakpoint":575,"settings":{"slidesToShow": 1}}]}'>
|
||||
|
||||
@foreach($blogs as $blog)
|
||||
<div class="col-lg-4 col-md-6 col-sm-6">
|
||||
<div class="featured-imagebox featured-imagebox-blog style2 m-15">
|
||||
<div class="featured-thumbnail">
|
||||
@if($blog->thumbnail)
|
||||
<img class="img-fluid" src="{{ Storage::url($blog->thumbnail) }}" alt="{{ $blog->title }}" width="740" height="568">
|
||||
@else
|
||||
<img class="img-fluid" src="/images/placeholder.jpg" alt="placeholder" width="740" height="568">
|
||||
@endif
|
||||
</div>
|
||||
<div class="featured-content featured-content-blog align-self-center">
|
||||
<div class="featured-title">
|
||||
<h3>
|
||||
<a href="{{ route('frontend.blog-details', $blog->id) }}">
|
||||
{{ Str::limit($blog->title, 80) }}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="post-footer">
|
||||
<div class="post-footer-link">
|
||||
<a class="ttm-btn btn-inline d-block ttm-btn-size-md ttm-icon-btn-right" href="{{ route('blogs.show', $blog->id) }}">
|
||||
{{ $blog->button_text ?? 'Read More' }}<i class="icon-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- about-section-end-->
|
Reference in New Issue
Block a user