@extends('layouts/acc_layout') @section('title', '| Voucher') @section('content') @php if(isset($_GET['txtStartingDate'])){ $startDate = $_GET['txtStartingDate']; }else{ $startDate = null; } if(isset($_GET['txtEndingDate'])){ $endDate = $_GET['txtEndingDate']; }else{ $endDate = null; } if(isset($_GET['deliveryCost'])){ $deliveryCost = $_GET['deliveryCost']; }else{ $deliveryCost = 1; } if(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = 0; } if(isset($_GET['OptBranch'])){ $searchByBranch = $_GET['OptBranch']; }else{ $searchByBranch = ''; } @endphp

TRANPORTATION COST VOUCHER LISTS

{{--
--}} {{--
--}} {!! Form::open(array('url' => 'transferAutoVouchers/', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'viewTransferVoucherForm', 'method'=>'get')) !!}
{!! Form::label('txtStartingDate', 'Start Date:', ['class' => 'col-sm-12 control-label']) !!}
{!! Form::text('txtStartingDate', $startDate, ['class' => 'form-control','style'=>'cursor:pointer', 'id' => 'txtStartingDate','autocomplete'=>'off'])!!}

{!! Form::label('txtEndingDate', 'End Date:', ['class' => 'col-sm-12 control-label']) !!}
{!! Form::text('txtEndingDate', $endDate, ['class' => 'form-control','style'=>'cursor:pointer', 'id' => 'txtEndingDate','autocomplete'=>'off'])!!}

@if($branchIdFromQuery == 1)
{!! Form::label('', 'Branch:', ['class' => 'control-label col-sm-12']) !!}

@endif
{!! Form::label('', 'Status:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('', '', ['class' => 'control-label col-sm-12']) !!}
{!! Form::submit('Search', ['id' => 'searchTransferVoucher', 'class' => 'btn btn-primary']); !!}
{!! Form::close() !!} {{--
--}} {{--
--}} {{-- end Div of ledgerSearch --}}
@if(isset($_GET['status']) && $_GET['status'] == 1) @endif @if($branchIdFromQuery == 1) @endif @if($branchIdFromQuery != 1) @if(empty($_GET['status'])) @elseif(isset($_GET['status']) && $_GET['status'] !=1) @endif @endif @php $no = $t_qty = $t_t_amount = $t_cost = 0; @endphp @foreach($transferVouchers as $t_voucher) @if($t_voucher->transfer_in== $user_branch_id || $branchIdFromQuery == 1)
Warning: Undefined variable $t_voucher in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 167

Warning: Attempt to read property "total_quantity" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 167

Warning: Undefined variable $t_qty in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 167

Warning: Undefined variable $t_voucher in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 168

Warning: Attempt to read property "total_amount" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 168

Warning: Undefined variable $t_t_amount in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 168

Warning: Undefined variable $t_voucher in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 169

Warning: Attempt to read property "transport_cost" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 169

Warning: Undefined variable $t_cost in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/transferVouchers/viewTransferVouchers.blade.php on line 169
@if(isset($_GET['status']) && $_GET['status'] ==1) @if(isset($t_voucher->voucher_date)) @else @endif @endif {{-- --}} @if($branchIdFromQuery == 1) @endif @if($branchIdFromQuery != 1) @if($t_voucher->v_status != 1) @endif @endif @endif @endforeach {{-- {{ dd($statusFlag) }} --}} {{-- @if($branchIdFromQuery == 1) --}} @php $colSpanCount = 0; if(isset($_GET['status']) && $_GET['status'] == 1){ if($branchIdFromQuery == 1){ $colSpanCount = 6; }else{ $colSpanCount = 5; } }else{ if($branchIdFromQuery == 1){ $colSpanCount = 5; }else{ $colSpanCount = 4; } } @endphp {{-- @endif --}}
SL# Transfer DateVoucher DateTransfer Bill NoTransfer OutTransfer In Quantity Transfer Amount Transportation Cost Voucher StatusActionAction
{{++$no}} {{date('d-m-Y',strtotime($t_voucher->transfer_date))}}{{date('d-m-Y',strtotime($t_voucher->voucher_date))}}N/A{{'PTB'.$t_voucher->transfer_bill_no}}-{{$t_voucher->id}}{{'PTB'.$t_voucher->transfer_bill_no}}{{$t_voucher->transfer_from_code.' - '.$t_voucher->transfer_from}}{{$t_voucher->transfer_to_code.' - '.$t_voucher->transfer_to}} {{$t_voucher->total_quantity}} {{number_format($t_voucher->total_amount, 2, '.', ',')}} {{number_format($t_voucher->transport_cost, 2, '.', ',')}} @if($t_voucher->v_status == 0) Pending @else Approved @endif @if($t_voucher->transfer_in== $user_branch_id) @endif
Total {{ $t_qty }} {{ number_format($t_t_amount, 2, '.', ',') }} {{ number_format($t_cost, 2, '.', ',') }}
@if(!isset($_GET['status']))
{{ $transferVouchers->appends(['txtStartingDate' => $startDate,'txtEndingDate' => $endDate,'deliveryCost' => $deliveryCost,'status' => $status,'OptBranch'=>$searchByBranch])->links() }}
@endif
@endsection