@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
@forelse ($customers as $data_customer) @empty @endforelse
No Nama Customer Kode Customer No. Telepon Alamat Action
{{ $i++ }} {{ optional($data_customer)->name }} {{ optional($data_customer)->code_customer }} {{ optional($data_customer)->no_tlp }} {{ optional($data_customer)->address }}
@csrf @method('DELETE')
Data Kosong
@if (!$customers->isEmpty())

Showing {{ $customers->firstItem() }} to {{ $customers->lastItem() }} of {{ $customers->total() }} entries

@endif
@if ($customers->total() > $customers->perPage()) @endif
@else @include('pages.user.Master_Data.Customer.index') @endif @endsection