@props(['items', 'links'=>false,'pagination'=>false]) @if(isset($items) AND $items->count()>0)
merge(['class' => 'box__white']) }}> @auth @endauth @if($links) @auth @endauth @endif @auth @endauth @if($links) @auth @endauth @endif @foreach($items as $item) @auth @endauth @if($links) @auth @endauth @endif @auth @endauth @if($links) @auth @endauth @endif @endforeach
{{ __('messages.author') }} {{ __('messages.fields.created_at') }} {{ __('messages.fields.station_from') }} {{ __('messages.fields.station_to') }} {{ __('messages.fields.cargo') }} {{ __('messages.fields.weight') }} {{ __('messages.fields.wagon_type') }} {{ __('messages.fields.bid') }}{{ __('messages.fields.comment') }}
{{ ++$loop->index }} @if(Auth::user()->id != $item->user->id) @endif @if(Auth::user()->id==$item->user->id) @endif @if(Auth::user()->id==$item->user->id) @endif {{ $item->user->name }} @if(isset($item->chat_user_ids)) @endif {{ Carbon\Carbon::parse($item->created_at)->diffForHumans() }} {{ $item->stationFrom->railway->name }} | {{ $item->stationFrom->name_ua }} {{ $item->stationTo->railway->name }} | {{ $item->stationTo->name_ua }} {{ $item->cargoItem->name }} {{ $item->weight }} {{ $item->wagonType->name??'' }} {{ $item->bid ?? '' }} {{ $item->currency->symbol ?? '' }}{{ $item->comment ?? '' }}
@if($pagination)
{{ $items->onEachSide(2)->links()}}
@endif
@else
{{ __('messages.empty_result') }}
@endif