@extends('master') @section('title', 'User') @section('header-konten') @endsection @section('konten')
Pengguna/User
@php $tambah = explode(',', Auth::user()->role->tambah); $ubah = explode(',', Auth::user()->role->ubah); $hapus = explode(',', Auth::user()->role->hapus); @endphp @if (in_array('14', $tambah))
@endif
@if (in_array('14', $ubah) | in_array('14', $hapus)) @endif @foreach ($data as $dt) @if (in_array('14', $ubah) | in_array('14', $hapus)) @endif @endforeach
No Username Email RoleAksi
{{ $i }} {{ $dt->name }} {{ $dt->email }} @if ($dt->id_role == 1) Administrator @elseif($dt->id_role == 2) Tim Teknis @elseif($dt->id_role == 3) Pengembang @endif
@endsection @section('modal') @php $tambah = explode(',', Auth::user()->role->tambah); $ubah = explode(',', Auth::user()->role->ubah); $hapus = explode(',', Auth::user()->role->hapus); @endphp @if (in_array('14', $tambah)) @endif @if (in_array('14', $ubah)) @endif @if (in_array('14', $hapus)) @endif @endsection @section('script') @include('my_components.alertToast') @endsection