Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/sip.aplikasipos.info/resources/views/users/
Upload File :
Current File : /home/aplikasiposinfo/public_html/sip.aplikasipos.info/resources/views/users/index.blade.php

@extends('template')

@section('content')
    <div class="card">
        <div class="card-body">
            <a href="{{ route('users.create') }}" class="btn btn-primary btn-rounded btn-sm mb-4"><i
                    class="mdi mdi-plus">Tambah Data</i></a>
            <div class="table-responsive">
                <table class="table table-hover table-bordered">
                    <thead class="text-center table-info">
                        <tr>
                            <th>#</th>
                            <th>Foto</th>
                            <th>Nama</th>
                            <th>HP/WA</th>
                            <th>Email</th>
                            <th>Hak Akses</th>
                            <th>Status Suspend</th>
                            <th>Jenis Kelamin</th>
                            <th>Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        @php
                            $no = 1;
                        @endphp
                        @foreach ($pengguna as $item)
                            <tr>
                                <td class="text-center">{{ $no++ }}</td>
                                <td class="text-center">
                                    <img src="{{ asset('GambarUser') . '/' . $item->foto }}" alt="photo user">
                                </td>
                                <td>{{ $item->name }}</td>
                                <td>{{ $item->telp }}</td>
                                <td>{{ $item->email }}</td>
                                <td>{{ $item->access_rights == 1 ? 'Admin' : 'Pengguna' }}</td>
                                <td>{{ $item->status_suspend == 1 ? 'Aktif' : 'Non Aktif' }}</td>
                                <td>{{ $item->gender == 1 ? 'Laki-laki' : 'Perempuan' }}</td>
                                <td>
                                    <a href="{{ route('users.edit', $item->id) }}"
                                        class="btn btn-warning btn-sm btn-rounded"><i class="mdi mdi-lead-pencil"></i></a>
                                    <form action="{{ route('users.destroy', $item->id) }}" method="post">
                                        @csrf
                                        @method('delete')
                                        <button onclick="return confirm('Yakin ingin menghapus data?')"
                                            class="btn btn-danger btn-sm btn-rounded"><i
                                                class="mdi mdi-delete"></i></button>
                                    </form>
                                </td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
@endsection

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]