@forelse ($vouchers as $key=>$voucher)
@php
$action_step_id=null;
@endphp
|
@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
|
@empty
@endforelse