@extends('layout.app') @section('title') {{ __('Trips') }} @endsection @push('styles') @endpush @section('active_trips', 'active') @section('data_col', '2-columns') @section('body_class', '2-columns') @section('content')
{{ __('Trips') }}
@csrf @if(isset($trip)) @method('PUT') @endif

{{ __('Departure') }}

{{ __('Departure type:') }}
depart_site_id) ? 'site' : 'free') == 'site' ? 'checked' : '' }}>
depart_site_id && $trip->depart) ? 'free' : '') == 'free' ? 'checked' : '' }}>

{{ __('Destinations') }}

@php $destinations = old('destinations', isset($trip) ? $trip->destinations->toArray() : [['destination_site_id' => null, 'destination' => null]]); @endphp @foreach($destinations as $index => $destination)
{{ __('Destination type:') }}
@if($loop->first) @else @endif
@endforeach

{{ __('Passengers') }}

@endsection @push('scripts') @endpush