@extends('layouts.app') @section('site-name','Sistem Informasi SPP') @section('page-name','Pengguna') @section('content')

@yield('page-name')

Tambah Pengguna
@if(session()->has('msg'))
@if(session()->get('type') == 'success') @else @endif {{ session()->get('msg') }}
@endif
@foreach ($users as $index => $item) @endforeach
No. Nama Email Tanggal Status
{{ $index+1 }} @if(Auth::user()->id == $item->id) {{ $item->name }} @else {{ $item->name }} @endif {{ $item->email }} {{ $item->created_at->format('d-m-Y') }} {{ $item->role }} @if(Auth::user()->id != $item->id) @endif
@csrf
@endsection @section('js') @endsection