@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
Data User
@php $noUser = 1; @endphp @forelse ($user as $data) @empty @endforelse
No Nama Email No. HP Alamat Gudang Status Action
{{ $noUser++ }} {{ $data->fullname }} {{ $data->email }} {{ isset($data->no_hp) ? $data->no_hp : '-' }} {{ isset($data->address) ? $data->address : '-' }} {{ $data->warehouse->name }} {{ $data->role->name }}
@csrf @method('DELETE')
@else @include('pages.user.Master_Data.User.index') @endif @endsection