@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
Data User
@forelse ($users as $data) @empty @endforelse
No Nama Email No. HP Alamat Gudang Status Action
{{ $i++ }} {{ optional($data)->fullname }} {{ optional($data)->email }} {{ isset($data->no_hp) ? $data->no_hp : '-' }} {{ isset($data->address) ? $data->address : '-' }} {{ optional($data)->warehouse->name }} {{ optional($data)->role->name }}
@csrf @method('DELETE')
Data Kosong
@if (!$users->isEmpty())

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

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