@php $models = $customers; $model = $customer_model; @endphp @if ( $models->count() ) @includeIf('layouts.components.table_data_infinity_scroll', [ 'model' => $model, 'models' => $models, ]) @foreach ($models as $index => $customer) id) }}' title="Kunde bearbeiten" class="{{ Session::get('updated_id') === $customer->id ? 'active' : '' }}"> {{ $index + $customers->firstItem() }} {{ $customer->id }} status instanceof \App\Enums\Statuses) @switch($customer->status->value) @case('0') {{-- Inactive --}} class="label label-danger" @break @case('1') {{-- Active --}} class="label label-default" @break @case('2') {{-- Blocked --}} class="label label-dark" @break @default class="label label-secondary" {{-- Default label if needed --}} @endswitch @else class="label label-secondary" {{-- Fallback if status is null or invalid --}} @endif >{{ $customer->type }} {{ $customer->KuNr }} {{ $customer->company }} {{ $customer->get_main_address()->city }} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach @endif