@foreach($listing->items() as $k => $rm)
@php $missionID= General::encrypt($rm->id); @endphp
@php $image = ""; @endphp @if(isset($rm['mission']['image']) && $rm['mission']['image']) @php $image = json_decode($rm['mission']['image']); $image = isset($image[0]) ? $image[0] : ""; @endphp @endif @include('frontend.partials.fileRender', ['file' => $image, 'size' => "medium"])
{{--
--}}
{{isset($rm['mission']['title']) && $rm['mission']['title'] ? Str::limit($rm['mission']['title'],35) : ''}}

{!! isset($rm['mission']['description']) && $rm['mission']['description'] ? Str::words(strip_tags($rm['mission']['description']),30) : '' !!}

{{isset($rm['mission']['start_date']) && $rm['mission']['start_date'] ? date('d M, Y',strtotime($rm['mission']['start_date'])) : ''}} - {{isset($rm['mission']['end_date']) && $rm['mission']['end_date'] ? date('d M, Y',strtotime($rm['mission']['end_date'])) : ''}}

{{isset($rm['mission']['start_time']) && $rm['mission']['start_time'] ? date('h:i a',strtotime($rm['mission']['start_time'])) : ''}} - {{isset($rm['mission']['end_time']) && $rm['mission']['end_time'] ? date('h:i a',strtotime($rm['mission']['end_time'])) : ''}}

{{isset($rm['mission']['language_title']) && $rm['mission']['language_title'] ? $rm['mission']['language_title'] : ''}}

{{isset($rm['mission']['timezone_title']) && $rm['mission']['timezone_title'] ? $rm['mission']['timezone_title'] : ''}}

@php $missionID= General::encrypt($rm->id); @endphp Read more
{{-- @if(isset($rm->mission) && $rm->mission)
@if($rm->mission->registration == "open")

The Mission has Open

@else

The Mission has Close

@endif
@endif --}}
@endforeach