@extends('front.layouts.app', ['title' => 'Blog']) @section('content') @include('front.layouts.app-header') {{--

Blog

Get Smart

@foreach($blogs as $blog)
@if(!empty($blog->image) && \Illuminate\Support\Facades\Storage::exists($blog->image)) @else @endif {{$blog->blogCategory->name}}

{{$blog->name}}

  • {{$blog->created_at->format(' F j Y ')}}
@endforeach
--}}

Wine Stories

@if(count($winestories) > 0)
@if(!empty($winestories[0]->image) && \Illuminate\Support\Facades\Storage::exists($winestories[0]->image)) @else @endif {{-- {{$winestories[0]->blogCategory->name}} --}}

{{$winestories[0]->name}}

  • {{$winestories[0]->date ? date('F j Y', strtotime($winestories[0]->date)): date('F j Y', strtotime($winestories[0]->created_at)) }}
@endif
@foreach($winestories as $key=>$story) @if($key > 0)
@if(!empty($story->image) && \Illuminate\Support\Facades\Storage::exists($story->image)) @else @endif
@endif @endforeach

Most Recent

@foreach($recentblogs as $recent)
@if(!empty($recent->image) && \Illuminate\Support\Facades\Storage::exists($recent->image)) @else @endif {{-- {{$recent->blogCategory->name}} --}}

{{$recent->name}}

  • {{$recent->date ? date('F j Y', strtotime($recent->date)) : date('F j Y', strtotime($recent->created_at)) }}
@endforeach
@include('front.layouts.app-footer') @endsection