Customer List
@php
$columns = [
['label' => 'Id', 'column' => 'id', 'sort' => true],
['label' => 'Customer ID', 'column' => 'customer_id', 'sort' => true],
['label' => 'Company Name', 'column' => 'compay_name', 'sort' => true],
['label' => 'Email', 'column' => 'email', 'sort' => true],
['label' => 'Status', 'column' => 'status', 'sort' => true],
['label' => 'Actions', 'column' => 'action', 'sort' => false],
];
@endphp
@foreach ($customers as $key => $item)
{{ $item->id }}
{{ $item->customer_id }}
{{ $item->company_name }}
{{ $item->email }}
@if ($item->status)
Active
@else
In-Active
@endif
{{-- {{$item->products->count()}} --}}
{{--
--}}
{{--
--}}
@endforeach
Action