Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/isranhadikaltim.id/resources/views/kecamatan/
Upload File :
Current File : /home/aplikasiposinfo/public_html/isranhadikaltim.id/resources/views/kecamatan/index.blade.php

@extends('layouts.app')

@section('content')
    <!-- Default box -->
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Data {{ $title }}</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                    <i class="fa fa-minus"></i></button>

            </div>
        </div>
        <div class="box-body">
            @include('layouts.include.cari')
            <a href="{{ url($link . '/create') }}" class="btn btn-sm btn-primary" title="Tambah Data {{ $title }}"><i
                    class="fa fa-plus"></i></a>
            <a href="{{ url($link . '/import') }}" class="btn btn-sm btn-success" title="Import Data {{ $title }}"><i
                    class="fa fa-file-excel-o"></i></a>

            <table id="example2" class="table table-bordered table-hover">
                <thead>
                    <tr>
                        <th>No</th>
                        <th>Nama Kecamatan</th>
                        <th>Kabupaten</th>
                        <th>Kelurahan</th>
                        <th>Aksi</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($datas as $data)
                        <tr>
                            <td>
                                {{ $no++ }}
                            </td>
                            <td>
                                {{ $data->nama_kecamatan }}
                            </td>
                            <td>
                                {{ $data->kabupatens->nama_kabupaten }}
                            </td>
                            <td>
                                Total : {{ count($data->kelurahans) }}
                                <details>
                                    <summary>List Keluarahan</summary>
                                    <ol>
                                        @foreach ($data->kelurahans as $kelurahan)
                                            <li>{{ $kelurahan->nama_kelurahan }}</li>
                                        @endforeach
                                    </ol>
                                </details>
                            </td>
                            <td>
                                <form method="post" action="{{ url($link . '/' . $data->id) }}">
                                    @csrf
                                    <input type="hidden" name="_method" value="delete">
                                    <a href="{{ url($link . '/' . $data->id . '/edit') }}"
                                        class="btn btn-sm btn-warning"><i class="fa fa-edit"></i></a>
                                    <button type="submit" class="btn btn-sm btn-danger"><i
                                            class="fa fa-trash"></i></button>
                                </form>

                            </td>
                        </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            {!! $datas->appends(request()->except('page'))->links() !!}
        </div>
        <!-- /.box-footer-->
    </div>
    <!-- /.box -->
@endsection

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