@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) @auth @endauth @else @endif @endauth @auth @endauth @endforeach
{{ __('messages.author') }} {{ __('messages.fields.created_at') }} {{ __('messages.fields.wagon_type') }} {{ __('messages.fields.wagon_type_specification') }} {{ __('Offer type') }} {{ __('messages.number_wagons') }} {{ __('messages.fields.bid') }}
{{ ++$loop->index }} @if (Auth::user()->id != $item->user->id) @endif {{ Carbon\Carbon::parse($item->created_at)->diffForHumans() }} {{ $item->wagonType->name ?? '' }} @if ($item->wagonType && $item->wagonType->specifications->isNotEmpty() && $item->wagonSpecification) {{ $item->wagonSpecification->full_name }} @else {{__('messages.fields.no_specs')}} @endif {{ $item->rentalType->name }} {{ $item->quantity }} {{ $item->bid ?? __('messages.not_specified') }} {{ $item->currency->symbol ?? '' }}
@if ($pagination)
{{ $items->onEachSide(2)->links() }}
@endif
@else
{{ __('messages.empty_result') }}
@endif