@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['saleReturnAmount'])){ $saleReturnAmount = $_GET['saleReturnAmount']; }else{ $saleReturnAmount = 1; } if(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = 0; } if(isset($_GET['OptBranch'])){ $searchByBranch = $_GET['OptBranch']; }else{ $searchByBranch = ''; } @endphp

SALE RETURN 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($branchName == 'Head Office')
{!! 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($branchName != 'Head Office') @if(empty($_GET['status'])) @elseif(isset($_GET['status']) && $_GET['status'] !=1) @endif @endif @php $no = 0; @endphp @foreach($saleReturnAutoVoucher as $sale_return_voucher) @if($sale_return_voucher->branch_id== $user_branch_id || $branchName == 'Head Office') @if(isset($_GET['status']) && $_GET['status'] ==1) @if(isset($sale_return_voucher->voucher_date)) @else @endif @endif @if($branchName != 'Head Office') @endif @endif @endforeach
SL# Sale Return DateVoucher DateSale Return Bill No Branch Quantity Total Amount Sale Return Amount Voucher StatusActionAction
{{++$no}} {{date('d-m-Y',strtotime($sale_return_voucher->sales_return_date))}}{{date('d-m-Y',strtotime($sale_return_voucher->voucher_date))}}N/A{{'SLS'.$sale_return_voucher->sales_return_bill_no}} {{$sale_return_voucher->salereturn_branchcode.' - '.$sale_return_voucher->salereturn_branchname}} {{$sale_return_voucher->total_quantity}} {{number_format($sale_return_voucher->total_amount, 2, '.', ',')}} {{number_format($sale_return_voucher->sale_return_amount, 2, '.', ',')}} @if($sale_return_voucher->voucher_status == 0) Pending @else Approved @endif @if($sale_return_voucher->branch_id== $user_branch_id) @endif
@if(!isset($_GET['status']))
{{ $saleReturnAutoVoucher->appends(['txtStartingDate' => $startDate,'txtEndingDate' => $endDate,'saleReturnAmount' => $saleReturnAmount,'status' => $status,'OptBranch'=>$searchByBranch])->links() }}
@endif
@endsection