@extends('layouts.theme') @section('title',__('staticwords.ourblog')) @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}}

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

{{__('staticwords.readmore')}}
@endif
@endforeach @endif
@endsection