@if(session('success')) @endif
Reset
Companies List
@forelse($companies as $index => $comp) @empty @endforelse
# Company Code Company Name Attributes Status Actions
{{ $companies->firstItem() + $index }} {{ $comp->company_code }} {{ $comp->company_name }} @if(!empty($comp->attributes) && is_array($comp->attributes))
@foreach(array_slice($comp->attributes, 0, 3) as $attr) @if(!empty($attr['icon']) && file_exists(public_path('storage/' . $attr['icon']))) @endif {{ Str::limit($attr['key'] ?? '', 20) }} @endforeach @if(count($comp->attributes) > 3) +{{ count($comp->attributes) - 3 }} more @endif
@else N/A @endif
@if($comp->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
No companies found.
@if($companies->hasPages()) @endif