@extends('layout.app') @section('title', __('Trips')) @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') }}

{{ __('Destinations') }}

@php $destinations = old('destinations', isset($trip) ? ($trip->destinations->count() ? $trip->destinations->toArray() : [['destination_site_id' => null, 'destination' => null]]) : [['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