KUJUNTI.ID MINISH3LL
Path : /var/www/html/thb_loan_system/resources/views/saving/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/thb_loan_system/resources/views/saving/data.blade.php


@extends('layouts.master')
@section('title')
    {{translate('saving account')}}
@endsection
@section('content')
    <div class="panel panel-white">
        <div class="panel-heading">
            <h6 class="panel-title">{{translate('saving account')}}</h6>
            <div class="heading-elements">
                @if(Sentinel::hasAccess('savings.create'))
                    <a href="{{ url('saving/create') }}"
                       class="btn btn-info btn-sm">{{translate('add saving account')}}</a>
                @endif
            </div>
        </div>
        <div class="panel-body ">
            <div class="table-responsive">
                <table id="data-table" class="table table-striped table-condensed table-hover">
                    <thead>
                    <tr>
                        <th>{{translate('account')}}</th>
                        <th>{{translate('borrower')}}</th>
                        <th>{{translate('product')}}</th>
                        <th>{{translate('balance')}}</th>
                        <th>{{ translate('action') }}</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($data as $key)
                        <tr>
                            <td>{{ $key->id }}</td>
                            <td>
                                @if(!empty($key->borrower))
                                    {{ $key->borrower->title }} {{ $key->borrower->first_name }} {{ $key->borrower->last_name }}
                                @endif
                            </td>
                            <td>
                                @if(!empty($key->savings_product))
                                    {{ $key->savings_product->name }}
                                @endif
                            </td>
                            <td>{{ currency_converter(\App\Helpers\GeneralHelper::savings_account_balance($key->id)) }}</td>
                            <td>
                                <ul class="icons-list">
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                            <i class="icon-menu9"></i>
                                        </a>
                                        <ul class="dropdown-menu dropdown-menu-right">
                                            @if(Sentinel::hasAccess('savings.view'))
                                                <li><a href="{{ url('saving/'.$key->id.'/show') }}"><i
                                                                class="fa fa-search"></i> {{ translate('detail') }}
                                                    </a>
                                                </li>
                                            @endif
                                            @if(Sentinel::hasAccess('savings.update'))
                                                <li><a href="{{ url('saving/'.$key->id.'/edit') }}"><i
                                                                class="fa fa-edit"></i> {{ translate('edit') }} </a>
                                                </li>
                                            @endif
                                            @if(Sentinel::hasAccess('savings.delete'))
                                                <li><a href="{{ url('saving/'.$key->id.'/delete') }}"
                                                       class="delete"><i
                                                                class="fa fa-trash"></i> {{ translate('delete') }}
                                                    </a>
                                                </li>
                                            @endif
                                        </ul>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.box -->
@endsection
@section('footer-scripts')
    <script>
        $('#data-table').DataTable({
            "order": [[0, "asc"]],
            "columnDefs": [
                {"orderable": false, "targets": [4]}
            ],
            "language": {
                "lengthMenu": "{{ translate('lengthMenu') }}",
                "zeroRecords": "{{ translate('zeroRecords') }}",
                "info": "{{ translate('info') }}",
                "infoEmpty": "{{ translate('infoEmpty') }}",
                "search": "{{ translate('search') }}",
                "infoFiltered": "{{ translate('infoFiltered') }}",
                "paginate": {
                    "first": "{{ translate('first') }}",
                    "last": "{{ translate('last') }}",
                    "next": "{{ translate('next') }}",
                    "previous": "{{ translate('previous') }}"
                }
            },
            responsive: false
        });
    </script>
@endsection

© KUJUNTI.ID