KUJUNTI.ID MINISH3LL
Path : /var/www/html/thb_loan_system/resources/views/loan/
(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/loan/applications.blade.php


@extends('layouts.master')
@section('title'){{translate('loan application')}}
@endsection
@section('content')
    <div class="panel panel-white">
        <div class="panel-heading">
            <h6 class="panel-title">{{translate('loan application')}}</h6>

            <div class="heading-elements">

            </div>
        </div>
        <div class="panel-body table-responsive">
            <table id="data-table" class="table table-striped table-condensed table-hover">
                <thead>
                <tr>
                    <th>#</th>
                    <th>{{translate('borrower')}}</th>
                    <th>{{translate('product')}}</th>
                    <th>{{translate('amount')}}</th>
                    <th>{{translate('status')}}</th>
                    <th>{{translate('note')}}</th>
                    <th>{{translate('date')}}</th>
                    <th>{{ translate('action') }}</th>
                </tr>
                </thead>
                <tbody>
                @foreach($data as $key)
                    <tr>
                        <td>{{$key->id}}</td>
                        <td>
                            @if(!empty($key->borrower))
                                <a href="{{url('borrower/'.$key->borrower_id.'/show')}}">{{$key->borrower->first_name}} {{$key->borrower->last_name}}</a>
                            @else
                                <span class="label label-danger">{{translate('broken')}} <i
                                            class="fa fa-exclamation-triangle"></i> </span>
                            @endif
                        </td>
                        <td>
                            @if(!empty($key->loan_product))
                                <a href="{{url('loan/loan_product/'.$key->loan_product_id.'/edit')}}">{{$key->loan_product->name}}</a>
                            @else
                                <span class="label label-danger">{{translate('broken')}} <i
                                            class="fa fa-exclamation-triangle"></i> </span>
                            @endif
                        </td>
                        <td>{{round($key->amount)}}</td>
                        <td>
                            @if($key->status=='declined')
                                <span class="label label-danger">{{translate('declined')}}</span>
                            @endif
                            @if($key->status=='approved')
                                <span class="label label-success">{{translate('approved')}}</span>
                            @endif
                            @if($key->status=='pending')
                                <span class="label label-warning">{{translate('pending')}}</span>
                            @endif
                        </td>

                        <td>{!! $key->notes !!}</td>
                        <td>{!! $key->created_at !!}</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" role="menu">
                                        @if($key->status=='pending' || $key->status=="declined")
                                            @if(Sentinel::hasAccess('loans.create'))
                                                <li><a href="{{ url('loan/loan_application/'.$key->id.'/approve') }}"><i
                                                                class="fa fa-check"></i> {{ translate('approve') }}
                                                    </a>
                                                </li>
                                            @endif
                                        @endif
                                        @if( $key->status=="pending")
                                            @if(Sentinel::hasAccess('loans.update'))
                                                <li><a href="{{ url('loan/loan_application/'.$key->id.'/decline') }}"><i
                                                                class="fa fa-minus-circle"></i> {{ translate('decline') }}
                                                    </a>
                                                </li>
                                            @endif
                                        @endif
                                        @if(Sentinel::hasAccess('loans.delete'))
                                            <li><a href="{{ url('loan/loan_application/'.$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>
        <!-- /.panel-body -->
    </div>
    <!-- /.box -->
@endsection
@section('footer-scripts')

    <script>
        $('#data-table').DataTable({
            "order": [[6, "desc"]],
            "columnDefs": [
                {"orderable": false, "targets": [7]}
            ],
            "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') }}"
                }
            }
        });
    </script>
@endsection

© KUJUNTI.ID