@extends('admin.layout.master') @section('title','VOUCHER MANAGEMENT') @section('custom_style') @endsection @section ('content')
|
|
# | Vchr No | Inv No | Date | {{-- @if((Request()->filter_date && (Request()->filter_date=='approval_date'))) --}} {{-- --}} {{-- @else @endif --}}Store | Bill No | Bill Date | Chln No | Prep Date | Party | {{--Type | --}} {{--Notes | --}}Amount | Dues | Action | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
approved_status>0) disabled @endif type="checkbox" value="{{$voucher->id}}" id="voucher_id_{{$voucher->id}}">
|
{{ $key+1}} | {{ $voucher->voucher_no }} | @php $reff=$voucher->reffInvoice??$voucher->reffFgInvoice; $printUrlArray=['','purchase-print?id=','purchase-print?id=','sell-print?id=','sell-print?id=','adjustment-print?id=','adjustment-print?id=','adjustment-print?id=','issue-print?id=','issue-print?id=','store_transfer-print?model=0&store_invoice_id=', 'store_transfer-print?model=1&store_invoice_id=', 'production-print?id=', 'opening-print?id=','','','adjustment-print?id=', 'purchase-contract-print?id=', 'sales-contract-print?id=']; @endphp @if($reff) @if(!$reff->ref_type) @endif {{$reff->invoice_no}} @endif | {{ date('d-M-Y', strtotime($voucher->date))}} | {{-- @if((Request()->filter_date && (Request()->filter_date=='approval_date'))) --}} @php if($voucher->approvals && count($voucher->approvals)){ $app_id=$voucher->approvals->first()->id; $app_date=$voucher->approvals->first()->created_at; }else{ $app_id=8888888899; }//endif @endphp{{$app_id}} | {{--{{date('d-M-Y', strtotime($app_date))}} | --}} {{-- @else --}} {{--{{$voucher->id}} | --}} {{-- @endif --}} @php $journals=$voucher->journals->where('type',1); @endphp{{$voucher->warehouse_id}} | {{ $voucher->warehouse? $voucher->warehouse->name_eng:'' }} | {{ $voucher->bill_no }} | {{ $voucher->bill_date?date('d-M-Y', strtotime($voucher->bill_date)):''}} | {{ $voucher->reff_no }} | {{ $voucher->preparation_date?date('d-M-Y', strtotime($voucher->preparation_date)):''}} | {{ count($journals)? ($journals->first()->ledger->name):'' }} | {{--{{ strtoupper(str_replace('_',' ',$types[$voucher->type]))}} | --}} {{--{{ $voucher->note}} | --}}{{ $voucher->transaction_amount}} | {{ number_format($voucher->due,2)}} | @if(checkAuthPermission('voucher.voucher_details')) @endif @if(checkAuthPermission($routes[$voucher->type]) && checkAuthPermission('voucher.journal_voucher_update')) @endif @if($voucher->approved_status==0 && $voucher->preparation_date) @if(checkAuthPermission('voucher.set_approval_of_bill')) @endif @endif @if($voucher->approved_status==1 && $voucher->preparation_date) @endif {{-- --}} |