Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/dispora.aplikasipos.info/resources/views/all/
Upload File :
Current File : /home/aplikasiposinfo/www/dispora.aplikasipos.info/resources/views/all/index.blade.php

@extends('sidebaradmin')
@section('content')
    <div class="card w-100">
        <div class="card-header fw-bold center ">
            Table Dokumen
        </div>
        <div class="card-body w-100"style="overflow-x:auto;">
            <table class="table w-100" id="table1">
                <thead>
                    <tr>
                        <th>Photo</th>
                        <th>Nama organisasi</th>
                        <th>jenis organisasi</th>
                        <th>Email</th>
                        <th>Kecamatan</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>

                    @foreach ($organisasi as $item)
                        <tr>
                            <td><img src="{{ asset('images') . '/' . $item->photo }}" alt="profile image" style="width: 150px"
                                    class="rounded"></td>
                            <td class="overflow-auto">{{ $item->organisasi }}</td>
                            <td class="overflow-auto">
                                @if ($item->role == 1)
                                    Organisasi Pemuda
                                @elseif($item->role == 2)
                                    Organisasi Olahraga
                                @elseif($item->role == 3)
                                    Satuan Karya
                                @else
                                    Gugus Depan
                                @endif
                            </td>
                            <td class="overflow-auto " style="max-width: 300px;">{{ $item->email }}</td>
                            <td class="overflow-auto " style="max-width: 300px;">{{ $item->kecamatan->name }}</td>

                            <td>
                                @if ($item->persetujuan == 0)
                                    <form action="{{ route('aksesPemuda', Crypt::encryptString($item->id)) }}"
                                        method="post">
                                        @csrf

                                        <button type="submit" class="btn btn-secondary m-2">Belum disetujui</button>
                                    </form>
                                @else
                                    <form action="{{ route('lepasAksesPemuda', Crypt::encryptString($item->id)) }}"
                                        method="post">

                                        @csrf

                                        <button type="submit" class="btn btn-success m-2">Telah disetujui</button>
                                    </form>
                                @endif



                            </td>


                        </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
@endsection

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