@extends("template.layouts.simple.master") @section('content')
@include("master.notification")
@foreach($details as $d) @php $date = \Carbon\Carbon::createFromFormat('Y-m-d', $d->scheduling_date_time)->format("d F Y"); $user = \App\Models\User::find($d->entry_by); $role = $user->getRoleNames()[0]; @endphp
{{$d->title}}
@foreach(unserialize($d->video_image) as $i)
@can("download news from news page") @endcan
@endforeach
  • {{$date}}
  • by: {{$role}}
  • {{$d->title}}

{{$d->description}}
{{$d->description}}

@php $comment = $d->getComments()->latest()->first(); $comment_user = \App\Models\User::find(isset($comment->comment_by)? $comment->comment_by : ""); $comment_role = isset($comment_user) ? $comment_user->getRoleNames()[0] : ""; @endphp @if(isset($comment_user))
COMMENTS

  • image")}}" alt="Generic placeholder image">
    {{$comment_user->name}} ({{$comment_role}})
    {{$comment->comments}}
  • @can("view show more comments button in news page")
  • Show More
  • @endcan
@endif @can("add news comments")
@endcan
@endforeach
{{$details->links()}}
@endsection {{--@include("")--}} @section("scripts") @include("master.notification_show_hide") @endsection