@if(strstr($page,'profile.own') === false)
{{ $drive->user->name }}
|
@endif
@if($page != 'profile.own.inner')
@if($drive->address_to_id == $organizationAddressId)
Aller
@else
Retour
@endif
|
@endif
@if(strstr($page,'profile.own') === false)
{!! $drive->addressFrom->displayCity($organizationAddressId, $homeAddressId) !!}
|
{!! $drive->addressTo->displayCity($organizationAddressId, $homeAddressId) !!}
|
@endif
@if($page != 'profile.own.inner')
{{ $drive->eventOccurrence->event->name }}
|
@endif
{!! $drive->displaySchedule($organizationAddressId, '%A %d/%m/%Y %H:%M').' '.\App\GlobalUtil::getDriveLabel(0) !!}
|
{{ $drive->seatsAvailable() }}
|
@if(strstr($page,'profile.own') !== false)
@if($drive->disabled == 1)
{!! Form::open(['route' => 'drive.enable']) !!}
{{ method_field('POST') }}
{!! Form::hidden('drive_id', $drive->id) !!}
{!! Form::submit('Activer', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@else
{!! Form::open(['route' => 'drive.disable']) !!}
{{ method_field('POST') }}
{!! Form::hidden('drive_id', $drive->id) !!}
{!! Form::submit('Désactiver', ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!}
@endif
@else
{!! Form::open(['route' => 'drive.select']) !!}
{!! Form::hidden('drive_id', $drive->id) !!}
{!! Form::submit('Sélectionner', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endif
|
@endforeach