@props(['items', 'links' => false, 'linksadmin' => false, 'pagination' => false]) @if (isset($items) and $items->count() > 0)
merge(['class' => 'pb-5 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 @auth @endauth @endforeach
{{ __('messages.fields.image') }} {{ __('messages.author') }} {{ __('messages.fields.created_at') }} {{ __('messages.fields.price') }} {{ __('messages.fields.part_name') }} {{ __('messages.fields.factory_number') }}
{{ ++$loop->index }} @if (Auth::user()->id != $item->user->id) @endif {{ Carbon\Carbon::parse($item->created_at)->diffForHumans() }} {{ $item->price ?? '' }} {{ $item->currency->symbol ?? '' }} {{ $item->part_name }} {{ $item->factory_number }}
@if ($pagination)
{{ $items->onEachSide(2)->links() }}
@endif
@else
{{ __('messages.empty_result') }}
@endif