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


@extends('layouts.master')
@section('title')
    {{translate('collateral')}}
@endsection
@section('content')
    <div class="panel panel-white">
        <div class="panel-heading">
            <h6 class="panel-title">{{translate('collateral')}} </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('type')}}</th>
                        <th>{{translate('name')}}</th>
                        <th>{{translate('borrower')}}</th>
                        <th>{{translate('loan')}}</th>
                        <th>{{translate('value')}}</th>
                        <th>{{translate('status')}}</th>
                        <th>{{translate('date')}}</th>
                        <th>{{ translate('action') }}</th>
                    </tr>
                    </thead>
                    <tbody>
                    @forelse($data as $index=> $key)
                        <tr>
                            <td>
                                {{$index+1}}
                            </td>
                            <td>
                                @if(!empty($key->collateral_type))
                                    {{$key->collateral_type->name}}
                                @endif
                            </td>
                            <td>{{ $key->name }}</td>
                            <td>
                                @if(!empty($key->borrower))
                                    <a href="{{url('borrower/'.$key->borrower_id.'/show')}}"> {{$key->borrower->first_name}} {{$key->borrower->last_name}}</a>
                                @endif
                            </td>
                            <td><a href="{{url('loan/'.$key->loan_id.'/show')}}"># {{ $key->loan_id }}</a></td>
                            <td class="credit">{{ currency_converter($key->value) }}</td>
                            <td>
                                @if($key->status=='deposited_into_branch')
                                    {{translate('deposited_into_branch')}}
                                @endif
                                @if($key->status=='collateral_with_borrower')
                                    {{translate('collateral_with_borrower')}}
                                @endif
                                @if($key->status=='returned_to_borrower')
                                    {{translate('returned_to_borrower')}}
                                @endif
                                @if($key->status=='repossession_initiated')
                                    {{translate('repossession_initiated')}}
                                @endif
                                @if($key->status=='repossessed')
                                    {{translate('repossessed')}}
                                @endif
                                @if($key->status=='sold')
                                    {{translate('sold')}}
                                @endif
                                @if($key->status=='lost')
                                    {{translate('lost')}}
                                @endif
                            </td>
                            <td>{{ $key->date }}</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('collateral.view'))
                                                <li><a href="{{ url('collateral/'.$key->id.'/show') }}"><i
                                                            class="fa fa-search"></i> {{ translate('view') }}
                                                    </a></li>
                                            @endif
                                            @if(Sentinel::hasAccess('collateral.update'))
                                                <li><a href="{{ url('collateral/'.$key->id.'/edit') }}"><i
                                                            class="fa fa-edit"></i> {{ translate('edit') }} </a>
                                                </li>
                                            @endif
                                            @if(Sentinel::hasAccess('collateral.delete'))
                                                <li><a href="{{ url('collateral/'.$key->id.'/delete') }}"
                                                       class="delete"><i
                                                            class="fa fa-trash"></i> {{ translate('delete') }}
                                                    </a>
                                                </li>
                                            @endif
                                        </ul>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                    @empty
                        <tr class="odd text-center">
                            <td colspan="8" class="dataTables_empty">{{ translate('zeroRecords') }}</td>
                        </tr>
                    @endforelse
                    </tbody>
                </table>

            </div>
            {{ $data->withQueryString()->links() }}

        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.box -->
@endsection
@section('footer-scripts')

    <script>

    </script>
@endsection

© KUJUNTI.ID