@props(['items', 'links' => false, 'pagination' => false]) @if (isset($items) and $items->count() > 0)
merge(['class' => 'pb-5']) }}> @auth @endauth @if ($links) @auth @endauth @endif @auth @endauth @foreach ($items as $item) @auth @endauth @if ($links) @auth @endauth @endif @auth @endauth @endforeach
{{ __('messages.author') }} {{ __('messages.fields.created_at') }} {{ __('messages.fields.wagon_type') }} {{__('Offer type')}} {{ __('messages.number') }} {{ __('messages.fields.bid') }}
{{ ++$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->wagonType->name ?? '' }} {{ $item->rentalType->name }} {{ $item->quantity }} {{ $item->bid ?? '' }} {{ $item->currency->symbol ?? '' }}
@if ($pagination)
{{ $items->onEachSide(2)->links() }}
@endif
@else
{{ __('messages.empty_result') }}
@endif