@extends('layouts.theme') @section('title',__('our blog')) @section('main-wrapper')
{{__('All Blogs')}}
@if(isset($blogs)) @foreach($blogs as $item) @php if($item->image != NULL){ $image = 'images/blog/'.$item->image; }else{ $image = 'images/default-thumbnail.jpg'; } // Read image path, convert to base64 encoding $imageData = base64_encode(@file_get_contents($image)); if($imageData){ // Format the image SRC: data:{mime};base64,{data}; $src = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp
@if(isset($protip) && $protip == 1)
{{$item->title}}
  • {{$item->users->name}}
  • {{date ('F d,Y',strtotime($item->created_at))}}

{!! str_limit($item->detail,'150') !!}

{{__('Read More')}}
@endif
@endforeach @endif
@endsection