Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/derfacell.fixmate.id/resources/views/pembayaran_hutang/
Upload File :
Current File : /home/aplikasiposinfo/www/derfacell.fixmate.id/resources/views/pembayaran_hutang/index.blade.php

@extends('layouts.app')

@section('content')
    @push('styles')
        <!-- JQuery DataTable Css -->
        <link href="{{ url('material') }}/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
        <!-- JQuery DataTable Css -->
    @endpush
    @push('scripts')
        {{-- data Table --}}
        <script src="{{ url('material') }}/js/pages/tables/jquery-datatable.js"></script>
        <script src="{{ url('material') }}/plugins/jquery-datatable/jquery.dataTables.js"></script>
        <script src="{{ url('material') }}/plugins/jquery-datatable/skin/bootstrap/js/dataTables.bootstrap.js"></script>
        {{-- data Table --}}
    @endpush
    <style>
        input[type="checkbox"] {
            display: inline-block;
            visibility: visible;
            width: auto;
            height: auto;
        }
    </style>
    <div class="container-fluid">
        <div class="block-header">
            <h2>Data Pembayaran Hutang</h2>
        </div>

        <div class="row clearfix">
            <!-- Task Info -->
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="card">
                    <div class="header">
                    </div>
                    <div class="body">
                        @include('layouts.includes.filter')
                        <form id="form1" method="POST" action="{{ route('lunas') }}">
                            @csrf
                            <div class="table-responsive">

                                <button style="margin-bottom:10px;" id="BtnSubmit" class="btn btn-success" type="button"
                                    onclick="">Lunaskan Item
                                    yang
                                    Dipilih</button>
                                <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                                    <thead>
                                        <tr>
                                            <th style="width: 5px">Pilih</th>
                                            <th>Nomor Pembelian</th>
                                            <th>Supplier</th>
                                            <th>Total</th>
                                            <th>Jumlah Bayar</th>
                                            <th>Status</th>
                                            <th>Tools</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($datas as $data)
                                            <tr>
                                                <td style="width:5px;">
                                                    <div class="text-center" class="demo-checkbox">
                                                        <input type="checkbox" name="pilih[]" id="{{ $data->id }}"
                                                            value="{{ $data->id }}" />
                                                        <label for="{{ $data->id }}"></label>

                                                    </div>
                                                </td>
                                                <td>{{ $data->nomor_nota }}</td>

                                                <td>{{ $data->supplier->nama_supplier }}</td>
                                                <td>{{ number_format($data->total) }}</td>
                                                <td>{{ number_format($data->total_pembayaran_hutang) }}</td>
                                                <td>
                                                    @if (!$data->status_lunas)
                                                        Belum Lunas
                                                    @elseif($data->status_lunas)
                                                        Lunas
                                                    @endif
                                                </td>
                                                <td>
                                                    @if (!$data->status_lunas)
                                                        @if (\Helper::hakAkses('pembayaran_hutang', 'create'))
                                                            <a href="{{ route('pembayaran_hutang.edit', $data->id) }}"
                                                                class="btn btn-primary">Bayar</a>
                                                        @endif
                                                    @endif
                                                </td>
                                            </tr>
                                        @endforeach
                                    </tbody>


                                </table>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- #END# Task Info -->
        </div>
    </div>

    <script>
        var form = document.getElementById('form1');
        document.getElementById('BtnSubmit').addEventListener('click', function() {
            var confirmAction = confirm('Apakah anda ingin melunaskan transaksi yang telah dipilih?');
            if (confirmAction) {
                form.submit();
            }
        });
    </script>
@endsection

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