source: resources/views/blog/search.blade.php@ 7ed1069

Last change on this file since 7ed1069 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1@extends('layouts.blog')
2@section('title')
3{{-- {{ $tag . " | Technoblog" }} --}}
4@endsection
5@section('blog_content')
6
7 <div class="mainContent">
8 <div class="container-fluid p-4">
9
10 <div class="row">
11
12 <div class="col-md-12">
13
14 <style>
15 .default_sectionTitle_search:before,
16 .default_sectionTitle_search span,
17 .default_sectionTitle_search a {
18 background: #34c27b;
19 color: #34c27b;
20 }
21 </style>
22
23 @if($results->count() == 0)
24 <header class="default_sectionTitle default_sectionTitle_search"><span>No result</span></header>
25 @else
26 <header class="default_sectionTitle default_sectionTitle_search"><span>There are {{ $results->count() }} results</span></header>
27 @endif
28
29 </div>
30
31 @foreach($results as $post)
32
33 <div class="col-md-4 post-item">
34 <div class="card">
35 <div class="card-img-top-wrapper">
36 <img class="card-img-top" src="/uploads/{{ $post->image_link }}" alt="Card image cap">
37 </div>
38 <div class="card-body">
39 <h5 class="card-title"><a href="/category/{{ strtolower($post->category->name) }}/{{ $post->slug }}" class="blogSectionCardLink">{{ $post->title }}</a></h5>
40 <p class="card-text">{!! str_limit($post->content, 90) !!}</p>
41 </div>
42 <div class="card-footer">
43 <small class="text-muted">{{ $post->ago() }}</small>
44 </div>
45 </div>
46 </div>
47
48 @endforeach
49
50 </div>
51
52 </div>
53
54 </div>
55
56@endsection
Note: See TracBrowser for help on using the repository browser.