@extends('layouts.frontend.master') @section('page-div-start')
@endsection @push('styles') @section('title', $data->title) @if(file_exists(public_path('/').$data->image) && $data->image) @endif @if($data->tags) @php $strings = ''; foreach(explode(',',$data->tags) as $index=>$item) { if($index == 0) { $strings = trim(str_replace('#','',trim($item))); } else { $strings .= trim(str_replace('#',',',trim($item))); } } @endphp @endif @if($data->title) @endif @endpush @section("content")
@if($data->video)

{{date('d M, Y',strtotime($data->date)) ?? ''}} {{date('h:i A',strtotime($data->time)) ?? ''}}

{!!$data->title!!}

{!!$data->description!!} @if($data->tags)
{{str_replace(',', ' ', $data->tags); }} @endif
@elseif($data->image && file_exists(public_path('/').$data->image))

{{date('d M, Y',strtotime($data->date)) ?? ''}} {{date('h:i A',strtotime($data->time)) ?? ''}}

{!!$data->title!!}

{!!$data->description!!} @if($data->tags)
{{str_replace(',', ' ', $data->tags); }} @endif
@else

{{date('d M, Y',strtotime($data->date)) ?? ''}} {{date('h:i A',strtotime($data->time)) ?? ''}}

{!!$data->title!!}

{!!$data->description!!} @if($data->tags)
{{str_replace(',', ' ', $data->tags); }} @endif
@endif
@if(Auth::check()) @endif
@endsection @section('page-div-end') @endsection @push('scripts') @endpush