/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Company DI Payment'); ?> <?php $__env->startSection('style'); ?> <?php echo e(Html::style("assets/css/bootstrap-datepicker3.min.css")); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#"><?php echo e(__('messages.Home')); ?></a> </li> <li class="active"> Company DI Payment</li> </ul> </div> <div class="page-content"> <?php if(session('success')): ?> <div class="alert alert-success"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <?php if(session('error')): ?> <div class="alert alert-danger"> <?php echo e(session('error')); ?> </div> <?php endif; ?> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue"> Company DI Payment</h3> <form action="" method="POST" role="form" id="FilterForm"> <div class="row"> <?php echo e(csrf_field()); ?> <div class="col-md-3"> <div class="form-group"> <label for="product_company_id"> <?php echo e(__('messages.ProductCompany')); ?></label> <select class="form-control select2" name="product_company_id" id="product_company_id" onchange="filter()"> <option value=""> Select Product Company</option> <?php $__currentLoopData = $product_companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product_company->id); ?>" <?php echo e(isset($product_company_id) && $product_company_id==$product_company->id ? "selected":""); ?>><?php echo e($product_company->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('product_company_id')): ?> <span class="label label-danger"><?php echo e($errors->first('product_company_id')); ?></span> <?php endif; ?> </div> </div> <?php if(isset($invoices)): ?> <div class="col-md-3"> <div class="form-group"> <label for="invoice_id"> Invoice</label> <select class="form-control select2" name="invoice_id" id="invoice_id"> <option value=""> Select Invoice</option> <?php $__currentLoopData = $invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($invoice->id); ?>" <?php echo e(isset($invoice_id) && $invoice_id==$invoice->id ? "selected":""); ?>><?php echo e($invoice->invoice_number); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <?php endif; ?> <div class="col-md-3"> <div class="form-group"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </form> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Company DI Payment </div> <?php if(isset($current_invoice) && !is_null($current_invoice)): ?> <div class="panel panel-primary"> <div class="panel-body"> <form action="<?php echo e(URL('/user/save-company-di-payment')); ?>" method="post"> <?php echo e(csrf_field()); ?> <input type="hidden" name="invoice_id" id="invoice_id" value="<?php echo e($current_invoice->id); ?>"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="">Dealer</label> <input type="text" class="form-control" value="<?php echo e($current_invoice->dealer->name); ?> (<?php echo e($current_invoice->dealer->address1); ?>)" readonly="readonly"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Invoice Details</label> <input type="text" class="form-control" value="Purchase of <?php echo e($current_invoice->product); ?>" readonly="readonly"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Remaining Amount</label> <input type="text" class="form-control" name="remaining_amount" id="remaining_amount" value="<?php echo e($current_invoice->remaining_amount); ?>" readonly="readonly"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Paid Amount</label> <input type="text" class="form-control checkIfValid" name="paid_amount" id="paid_amount" placeholder="Paid Amount" value="" required="required"> <span class="label label-danger" style="display: none;"></span> </div> </div> <div class="col-md-4"> <div class="form-group"> <span class="label label-danger" style="display: none;"></span> <label for="">Bank Account Number</label> <select class="form-control checkIfValid select2" name="bank_account_id" id="bank_account_id"> <?php $__currentLoopData = $bank_accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bank_account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($bank_account->id); ?>"><?php echo e($bank_account->bank->name); ?> - <?php echo e($bank_account->account_number); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="label label-danger" style="display: none;"></span> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Payment Date</label> <input type="text" class="form-control checkIfValid date-picker" name="payment_date" id="payment_date" placeholder="Payment Date" required="required"> <span class="label label-danger" style="display: none;"></span> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Payment Reference Number</label> <input type="text" class="form-control checkIfValid" name="bank_reference_number" id="bank_reference_number" placeholder="Payment Reference Number" required="required"> <span class="label label-danger" style="display: none;"></span> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="">Payment Mode</label> <select class="form-control checkIfValid select2" name="payment_mode" id="payment_mode" required="required"> <option value="Cash">Cash</option> <option value="Cheque">Cheque</option> <option value="DD">DD</option> </select> <span class="label label-danger" style="display: none;"></span> </div> </div> <div class="clearfix"></div> <div class="col-md-4"> <div class="form-group"> <label for="">Payment Details</label> <textarea name="perticular" id="perticular" cols="30" rows="3" class="form-control" required="required">Credit Against Invoice <?php echo e($current_invoice->invoice_number); ?>(<?php echo e($current_invoice->product); ?>)</textarea> </div> </div> </div> <button type="submit" class="btn btn-primary">Save changes</button> </div> </form> <?php endif; ?> </div> <!-- /.page-content --> </div> </div><!-- /.main-content --> <?php $__env->startSection('script'); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.min.js")); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.bootstrap.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.buttons.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.flash.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.html5.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.print.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.colVis.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.select.min.js")); ?> <?php echo e(Html::script("assets/js/ace-elements.min.js")); ?> <?php echo e(Html::script("assets/js/ace.min.js")); ?> <?php echo e(Html::script("assets/js/bootstrap-datepicker.min.js")); ?> <script type="text/javascript"> jQuery(function($) { $('.date-picker').datepicker({ autoclose: true, todayHighlight: true }) .next().on(ace.click_event, function(){ $(this).prev().focus(); }); }) </script> <script type="text/javascript"> function filter(){ $('#invoice_id').val(''); $('#FilterForm').submit(); } </script> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('dashboard.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pmmsanvp/public_html/srt/resources/views/dashboard/invoice/company-di-payment.blade.php ENDPATH**/ ?>