@props(['items', 'links' => false, 'pagination' => false, 'linksadmin' => false]) @if (isset($items) and $items->count() > 0)
merge(['class' => 'box__white']) }}> @auth @endauth @auth @endauth @auth @endauth @foreach ($items as $item) @auth @endauth @auth @if (Auth::check() && Auth::user()->company && Auth::user()->company->admin_permission == 1 or Auth::check() && Auth::user()->id == $item->user_id) @else @endif @endauth @endforeach
{{ __('messages.fields.offer_name') }} {{ __('messages.fields.user_name') }} {{ __('messages.fields.contacts') }} {{ __('messages.fields.actual_from') }} {{ __('messages.fields.actual_to') }} {{ __('messages.fields.station') }}
{{ ++$loop->index }} @if (Auth::user()->id != $item->user->id) @endif {{ $item->offer_name }} {{ $item->user->name ?? 'N/A' }} {{ $item->contacts }} {{ Carbon\Carbon::parse($item->actual_from)->format('d-m-Y') }} {{ Carbon\Carbon::parse($item->actual_to)->format('d-m-Y') }} @foreach($item->stationsWagons as $station)
{{ $station->station->name_ua }} | {{ __('messages.fields.min_wagons') }} {{ $station->min_wagons }} {{ __('messages.fields.max_wagons') }} {{ $station->max_wagons }}
@endforeach
@if ($pagination)
{{ $items->onEachSide(2)->links() }}
@endif
@else
{{ __('messages.empty_result') }}
@endif