@extends('frontend.master', ['activePage' => 'home']) @section('content') {{-- events --}} {{__('Latest Events')}} {{-- event-carousel --}} @foreach ($events as $item) @if($loop->iteration <= 6) @if(Auth::guard('appuser')->check()) @else @endif {{ $item->name}} {{$item->start_time->format('l').', '.$item->start_time->format('d F Y')}} {{__('More Detail')}} @endif @endforeach {{__('Featured Category')}} @foreach ($category as $item) {{$item->name}} @endforeach {{__('Our Latest blog')}} @foreach ($blog as $item) @if(Auth::guard('appuser')->check()) @else @endif {{strlen($item->title)>=50? substr($item->title,0,50).'...':$item->title}} {{$item->category->name}} {{$item->created_at->format('d M.Y')}} @endforeach @endsection