@extends('layouts.admin') @section('content')
Edit {{ $item->name }}
@include('admin.ships._form')
Cabin Types
@forelse($item->cabins as $c) @empty @endforelse
Type Pax No. of cabins Price Action
@if($c->featured_image) {{ $c->name }} @endif
{{ $c->name }} @if($c->type || $c->code)
{{ collect([$c->type, $c->code])->filter()->join(' · ') }}
@endif
{{ $c->max_adults }} adult{{ $c->max_adults === 1 ? '' : 's' }}@if($c->max_children) + {{ $c->max_children }} child{{ $c->max_children === 1 ? '' : 'ren' }}@endif {{ $c->total_available }} @if($c->offer_price && $c->regular_price && $c->offer_price < $c->regular_price) ৳{{ $c->offer_price }} ৳{{ $c->regular_price }} @else ৳{{ $c->offer_price ?: $c->regular_price }} @endif
@csrf @method('DELETE')
No cabin types added yet.
@foreach($item->cabins as $c) @endforeach
Trips
@forelse($item->trips->sortBy('departure_at') as $t) @empty @endforelse
Trip Destination Date Pax Status Action
{{ $t->name }} @if($t->adult_price)
৳{{ $t->adult_price }}
@endif
{{ $t->destination?->name ?? 'Any destination' }} {{ $t->departure_at->format('d M Y, h:i A') }}
Return {{ $t->return_at->format('d M Y, h:i A') }}
{{ $t->available_seats }}/{{ $t->total_capacity }} {{ \App\Models\ShipTrip::STATUSES[$t->status] ?? $t->status }}
@csrf @method('DELETE')
No trips added yet.
@foreach($item->trips->sortBy('departure_at') as $t) @endforeach
@endsection