@yield('tagmenu')

@yield('button')
@php $no = 1; @endphp @forelse ($datas as $data) @if (strtolower($data->roles->pluck('name')->implode(' ')) == strtolower($role)) @if (strtolower($role) == 'superadmin') @if ($data->id !== 1) @endif @else @endif @endif @empty @endforelse
No NO KTP/NIK EMAIL Nama Role Dibuat Pada Action
{{ $no++ }} {{ $data->noktp }} {{ $data->email }} {{ $data->name }} {{ $data->roles ? $data->roles->pluck('name')->implode(' ') : '-' }} {{ \Carbon\Carbon::parse($data->created_at)->toFormattedDateString() }} @if (Auth::user()->id == 1) {{-- @can($status.'-view') Lihat
@endcan --}} @can($status.'-update') Ubah @endcan @can($status.'-delete') {!! Form::open(['route' => [$status.'.destroy', $data->id], 'method' => 'delete']) !!} {!! Form::button('Hapus', ['type' => 'submit', 'class' => 'btn btn-danger hapusheh{{$data->id}}', 'style'=>'width:100px;margin-top:7px;', 'onclick' => "return confirm('Are you sure?')"]) !!} {!! Form::close() !!} @endcan @else User Aktif @endif
{{ $no++ }} {{ $data->email }} {{ $data->noktp }} {{ $data->name }} {{ $data->roles ? $data->roles->pluck('name')->implode(' ') : '-' }} {{ \Carbon\Carbon::parse($data->created_at)->toFormattedDateString() }} @if (Auth::user()->roles->pluck('name')->implode(' ') == 'superadmin') {{-- @can($status.'-view') Lihat
@endcan --}} @can($status.'-update') Ubah @endcan @can($status.'-delete') {!! Form::open(['route' => [$status.'.destroy', $data->id], 'method' => 'delete']) !!} {!! Form::button('Hapus', ['type' => 'submit', 'class' => 'btn btn-danger hapusheh{{$data->id}}', 'style'=>'width:100px;margin-top:7px;', 'onclick' => "return confirm('Are you sure?')"]) !!} {!! Form::close() !!} @endcan @else User Aktif @endif
Data Kosong