@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 @auth @endauth @endforeach
{{ __('messages.fields.user_name') }} {{ __('messages.fields.type_of_enterprise') }} {{ __('messages.fields.type_of_equipment') }} {{ __('messages.fields.address') }} {{ __('messages.fields.zkpo_code') }}
{{ ++$loop->index }} @if (Auth::user()->id != $item->user->id) @endif {{ $item->user->name }} {{ $item->typeEnterprise->name ?? 'Не вказано' }} {{ $item->typeEquipment->name ?? 'Не вказано' }} {{ $item->address ?? 'Не вказано' }} {{ $item->user->company?->usreou ?? 'Не вказано' }}
@if ($pagination)
{{ $items->onEachSide(2)->links() }}
@endif
@else
{{ __('messages.empty_result') }}
@endif