@extends('layouts.app')
@section('title')
Loan & Advance List 
@stop

@section('css')

@stop

@section('content')

<div class="container-fluid">

     <!-- /row -->
     <br>
                <div class="row no-print">
                    <div class="col-sm-12">
                        <div class="white-box">
                            <h3 class="box-title">{{$loan->type}}</h3>
                            <hr>
                                    <div class="table-responsive">
                                        <table class="table">
                                            <tbody>
                                                <tr>
                                                    <td>Name</td>
                                                    <td>{{$employee_name}}</td>
                                                    
                                                </tr>
                                                <tr>
                                                    <td>Date</td>
                                                    <td>{{$loan->date}}</td>
                                               
                                                </tr>
                                                <tr>
                                                    <td>Receipt No</td>
                                                    <td>{{$loan->receipt_no}}</td>
                                                
                                                </tr>
                                                <tr>
                                                    <td>Amount </td>
                                                    <td>{{number_format($loan->loan_amount)}} </td>
                                                </tr>

                                               <tr>
                                                    <td>Payment Method</td>
                                                    <td>{{$loan->payment_method}}</td>
                                                
                                                </tr>

                                                <tr>
                                                    <td>Instrument No</td>
                                                    <td>{{$loan->instrument_no}}</td>
                                                </tr>

                                            </tbody>
                                        </table>
                                    </div>

                        </div>
                    </div>
                </div>

    
    <div style="display: inline-block; ">



    <div class="text-right no-print" style="display: inline-block; margin-bottom: 95px">
    
        <a onclick="$('#voucher-form').submit()" href="#"><button  class="btn btn-default btn-outline"  type="button"> <span><i class="fa fa-money"></i> Make Receipt Voucher</span> </button></a>

 

        

        <form id="voucher-form" method="post" action="{{route('create-voucher')}}">
            {{csrf_field()}}
        <input type="hidden" name="type" value="">
        <input type="hidden" name="id" value="">
        <input type="hidden" name="control" value="">

        </form>

    </div>
    
</div>
</div>
<!-- /.container-fluid -->



@stop

@section('js')
<script src="{{asset('js/jquery.PrintArea.js')}}" type="text/JavaScript"></script>
@stop