@extends('admin.layouts.app') @section('content')

{{ $title }}

@can('create '.$menu) Tambah Data @endcan
@foreach ($datas as $data) @endforeach
No Nama Email Username Aksi
{{ $loop->iteration }} {{ $data->nama }} {{ $data->email }} {{ $data->username }}
{{csrf_field()}} @can('edit '.$menu) Edit @endcan @can('delete '.$menu) @if (!$data->hasRole('Admin')) @endif @endcan
@endsection