@extends('admin.layout.master') @section('title','CHEQUE MANAGEMENT') @section('custom_style') @endsection @section ('content')
@include('admin.layout.title_header', ['title'=>'VOUCHER LIST']) {{--

VOUCHER LIST

--}}
@php $filter_date_type=['check_date'=>'cheque_date','preparation_date'=>'preparation_date']; // $types=[0=>'ALL',1=>'Registered',2=>'Approved',3=>'Passed',4=>'Bounced',5=>'Cancel']; $types=getChequeType(); @endphp
{{--
preparation_date) checked @endif>
--}}

@forelse ($vouchers as $key=>$voucher) @php $action_step_id=null; @endphp {{-- --}} {{-- --}} @empty @endforelse
Voucher No Date Prearation Date Type Note Party Amount Action
@if($voucher->check_status!=2) @if($action_step_id=checkApproval($voucher->approvals,$action_id)) @endif @endif
{{--
check_status>1) disabled @endif type="checkbox" value="{{$voucher->id}}" id="voucher_id_{{$voucher->id}}">
--}}
{{ $voucher->voucher_no }} {{ date('Y-M-d', strtotime($voucher->check_date))}}{{ $voucher->check_number }}{{ date('Y-M-d', strtotime($voucher->preparation_date))}} {{ strtoupper(str_replace('_',' ',$types[$voucher->check_status]))}} @if($voucher->check_status>1) {{ strtoupper(str_replace('_',' ',$types[$voucher->check_status]))}} @elseif($voucher->approvals && count($voucher->approvals->where('admin_id',active_user()))>0) @else {{ 'TO BE APPROVED' }} @endif {{ $voucher->note}} {{ $voucher->ledger?$voucher->ledger->name:''}} {{ $voucher->amount}} @if($voucher->check_status==1) @if($voucher->approvals && count($voucher->approvals->where('admin_id',active_user()))>0) @elseif($action_step_id) @endif @endif
{{-- --}}
{{-- @include('admin.modals.cheque_detail_modal') --}} @endsection @section('script') @stop