Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/reswara.aplikasipos.info/resources/views/pages/orang_tua/
Upload File :
Current File : /home/aplikasiposinfo/www/reswara.aplikasipos.info/resources/views/pages/orang_tua/index.blade.php

@extends('layouts.app')

@push('styles')
    <!-- DataTables -->
    <link
        href="{{ asset('assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}"
        rel="stylesheet" type="text/css" />
    <link
        href="{{ asset('assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css') }}"
        rel="stylesheet" type="text/css" />
@endpush

@section('content')
<!-- Start Page-content-Wrapper -->
<div class="page-content-wrapper">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-6">
                            <!-- This column takes half of the width -->
                            <h4 class="card-title">{{ $title }}</h4>
                        </div>
                        <div class="col-md-6 text-end">
                            <!-- This column takes the other half and aligns content to the right -->
                            @can('create '.$menu)
                                <a href="{{ route($url.'.create') }}"
                                    class="btn btn-sm btn-success mb-2"><i class="fa fa-plus"> </i>Tambah Data</a>
                            @endcan
                        </div>
                    </div>

                    <table id="datatable" class="table table-bordered dt-responsive nowrap"
                        style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>Nama Orang Tua</th>
                                <th>Username</th>
                                <th>Nama Siswa</th>
                                <th>No Identitas</th>
                                <th>Jenis Kelamin</th>
                                <th>Tempat / Tanggal Lahir</th>
                                <th>Nomor Hp</th>
                                <th>Alamat</th>
                                <th>Action</th>
                            </tr>
                        </thead>

                        <tbody>
                            @foreach($datas as $data)
                                <tr>
                                    <td> {{ $loop->iteration }} </td>
                                    <td> {{ $data->nama }} </td>
                                    <td> {{ $data->username }} </td>
                                    <td> {{ $data->orangtua->siswa->nama_siswa }} | {{ $data->orangtua->siswa->no_identitas }} </td>
                                    <td> {{ $data->orangtua->no_identitas }} </td>
                                    <td> {{ $data->orangtua->jenis_kelamin }} </td>
                                    <td> {{ $data->orangtua->tempat_lahir }} / {{ $data->orangtua->tanggal_lahir }} </td>
                                    <td> {{ $data->orangtua->nomor_hp }} </td>
                                    <td> {{ $data->orangtua->alamat }} </td>
                                    <td>
                                        <form method="POST"
                                            action="{{ route($url.'.destroy', $data->orangtua->id) }}">
                                            {{ csrf_field() }}
                                            <input type="hidden" name="_method" value="DELETE">
                                            @can('edit '.$menu)
                                                <a href="{{ route($url.'.edit', $data->orangtua->id) }}"
                                                    class="btn btn-sm btn-warning"><i class="fa fa-pen"> </i>Edit</a>
                                            @endcan

                                            @can('delete '.$menu)
                                                <button type="submit" class="btn btn-sm btn-danger"
                                                    onclick="return hapus()"><i class="fa fa-trash"></i>
                                                    Hapus</button>
                                            @endcan
                                        </form>
                                    </td>
                                </tr>
                            @endforeach
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
        <!-- end col -->
    </div>
    <!-- end row -->

</div>
<!-- End Page-content -->
@endsection

@push('scripts')
    <!-- Required datatable js -->
    <script src="{{ asset('assets/libs/datatables.net/js/jquery.dataTables.min.js') }}">
    </script>
    <script
        src="{{ asset('assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js') }}">
    </script>
    <!-- Buttons examples -->
    <script
        src="{{ asset('assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js') }}">
    </script>
    <script
        src="{{ asset('assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js') }}">
    </script>
    <script src="{{ asset('assets/libs/jszip/jszip.min.js') }}"></script>
    <script src="{{ asset('assets/libs/pdfmake/build/pdfmake.min.js') }}"></script>
    <script src="{{ asset('assets/libs/pdfmake/build/vfs_fonts.js') }}"></script>
    <script src="{{ asset('assets/libs/datatables.net-buttons/js/buttons.html5.min.js') }}">
    </script>
    <script src="{{ asset('assets/libs/datatables.net-buttons/js/buttons.print.min.js') }}">
    </script>
    <script src="{{ asset('assets/libs/datatables.net-buttons/js/buttons.colVis.min.js') }}">
    </script>
    <!-- Responsive examples -->
    <script
        src="{{ asset('assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js') }}">
    </script>
    <script
        src="{{ asset('assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js') }}">
    </script>

    <!-- Datatable init js -->
    <script src="{{ asset('assets/js/pages/datatables.init.js') }}"></script>
@endpush

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