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