@extends('layouts.base') @section('css') @endsection @section('content')
@foreach($data['slider']['top'] as $item) @endforeach
@foreach($data['slider']['bottom'] as $item) @php $dt = new DateTime; $dt->setDate(\Carbon\Carbon::parse($item->created_at)->format('Y'),\Carbon\Carbon::parse($item->created_at)->format('m'),\Carbon\Carbon::parse($item->created_at)->format('d')); $dt->setTime(\Carbon\Carbon::parse($item->created_at)->format('H'),\Carbon\Carbon::parse($item->created_at)->format('i')); $formatter = new IntlDateFormatter(\Illuminate\Support\Facades\Cookie::get('lang'), IntlDateFormatter::SHORT, IntlDateFormatter::SHORT); $formatter->setPattern('MMM d, y'); @endphp @endforeach
{{ \App\Metha\MethaTranslate::translate($translateModel,'blog.list.next') }}
{{ \App\Metha\MethaTranslate::translate($translateModel,'blog.list.previous') }}
@foreach($data['all'] as $item)
{{ $item->blog_title }}
  • {{ \Carbon\Carbon::parse($item->created_at)->format('d-m-Y') }}
  • {{ sprintf('%d',$item->view,\App\Metha\MethaTranslate::translate($translateModel,'blog.list.readmore')) }}
  • {{ sprintf('%d',isset($data['blog_comments'][$item->blog_code]) ? count($data['blog_comments'][$item->blog_code]) : 0,\App\Metha\MethaTranslate::translate($translateModel,'blog.list.view')) }}

{{ $item->blog_title }}

{{ \App\Metha\MethaTranslate::translate($translateModel,'blog.list.readmore') }}
@endforeach
@include('widgets.subscription')
@endsection @section('js') @endsection @section('script') @endsection