@extends('layouts.main') @section('container')

Vessel Management

Manage registered vessels

Add Vessel
@if (request('search') || request('per_page')) @endif
Showing {{ $vessels->firstItem() }}–{{ $vessels->lastItem() }} of {{ $totalVessels }} vessels
@forelse ($vessels as $vessel) @empty @endforelse
# Vessel Name Image Created By/At Actions
{{ $vessels->firstItem() + $loop->index }} {!! request('search') ? str_ireplace(request('search'), '' . request('search') . '', e($vessel->vessel_name)) : e($vessel->vessel_name) !!} @if ($vessel->image) Vessel Image @else No image @endif
{{ $vessel->creator->name ?? '-' }}
{{ $vessel->created_at ? $vessel->created_at->format('d M Y H:i') : '-' }}
Empty state
No Vessels Found

You haven't added any vessels yet

{{ $vessels->links('pagination::bootstrap-5') }}
@forelse ($vessels as $vessel)
{!! request('search') ? str_ireplace(request('search'), '' . request('search') . '', e($vessel->vessel_name)) : e($vessel->vessel_name) !!}

Created by:

{{ $vessel->creator->name ?? '-' }}
{{ $vessel->created_at ? $vessel->created_at->format('d M Y H:i') : '-' }} @if ($vessel->image) Vessel Image @endif
@empty
Empty state
No Vessels Available

Get started by adding a new vessel

@endforelse
{{ $vessels->links('pagination::bootstrap-5') }}
@endsection