@if($market['parent'] == 0) @php $attendee_status = $market['attendee_status']; $market_parent_id = $market['id']; @endphp @endif @if(\Carbon\Carbon::now() > $market['from_datetime'] && \Carbon\Carbon::now() < $market['to_datetime']) @if(empty($market['children'])) @if($market['form_id'])
{{ $market['name'] }}
{{ date("j F Y", strtotime($market['to_datetime'])) }}
@if(!$attendee_status) @lang('eventmarket.fill_form') @endif @if(!$market['attendee_status'] && $attendee_status) @lang('eventmarket.fill_form') @endif @if($attendee_status && $market['attendee_status']) @lang('global.edit') @endif
@else {{ $market['name'] }} @endif @else @if($market['form_id'])
{{ $market['name'] }}
{{ date("j F Y", strtotime($market['to_datetime'])) }}
@if(!$attendee_status) @lang('eventmarket.fill_form') @endif @if(!$market['attendee_status'] && $attendee_status) @lang('eventmarket.fill_form') @endif @if($attendee_status && $market['attendee_status']) @lang('global.edit') @endif
@else {{ $market['name'] }} @endif @foreach($market['children'] as $children) @include('eventmarket.partials.market_child', ['market' => $children, 'attendee_status' => $attendee_status, 'market_parent_id' => $market_parent_id]) @endforeach @endif @endif