@if (count($publishers) > 0)

@t('Publish your event to different platforms')

{{-- @foreach (array_slice($publishers, 0, 4) as $key => $publisher) --}} @foreach ($publishers as $key => $publisher) @include( 'Plugins/Payment/Views/Elements/Publisher/row', ['publisher' => $publisher] ) @endforeach {{-- @if (count(array_slice($publishers, 4)) > 0)
@endif --}}
@if (is_admin() && isset($data->Event->EventsPublisher) && $data->Event->EventsPublisher)

@t('Requested publishers')

@foreach ($data->Event->EventsPublisher as $key => $publisher) {!! Form::hidden( 'data[Event][EventsPublisher][' . $key . '][id]', $publisher->id ) !!} @endforeach
@t('Publisher') @t('Link') @t('Status')
{{ $publisher->Publisher->name }} {!! Form::text( 'data[EventsPublisher][' . $publisher->id . '][url]', (isset($publisher->url) ? $publisher->url : null) ) !!} @if ($publisher->extra)
@t('Publish on:') @if ($publisher->extra->date) @date($publisher->extra->date) @else @t('ASAP') @endif
@t('Publish time:') @if ($publisher->extra->time) @date($publisher->extra->time) @else @t('Any time') @endif
@if ($publisher->extra->caption) @t('Caption:') {{ $publisher->extra->caption }} @endif
@if ($publisher->extra->tags) @t('Tags:') {{ $publisher->extra->tags }} @endif
@endif
{!! Form::select( 'data[EventsPublisher][' . $publisher->id . '][status]', [ 'pending' => t('Pending'), 'published' => t('Published'), 'passwords' => t('Awaiting Passwords'), 'approval' => t('Pending Approval from Publisher') ], (isset($publisher->status) ? $publisher->status : null) ) !!}
@endif
@endif