File manager - Edit - /var/www/payraty/inventory_main/storage/framework/views/771036dac2945a2d66e2cf08d3a260da424b9270.php
Back
<?php $__env->startSection('content'); ?> <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-6"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#" class="ic-javascriptVoid"><?php echo e(__t('purchases')); ?></a></li> <li class="breadcrumb-item active"><?php echo e(__t('return').' '.__t('purchase')); ?></li> </ol> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <?php echo $__env->make('includes.messages.validation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <form action="<?php echo e(route('admin.purchases.return.store', $purchase->id)); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="card-body"> <h4 class="header-title"><?php echo e(__t('return').' '.__t('purchase')); ?></h4> <div class="table-responsive"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <table class="ic-purchase-print" width="100%" cellpadding="0" cellspacing="0"> <tr> <td><b><?php echo e(__t('purchase_number')); ?></b></td> <td>:</td> <td><?php echo e($purchase->purchase_number); ?></td> </tr> <tr> <td><b><?php echo e(__t('supplier')); ?></b></td> <td>:</td> <td><?php echo e($purchase->supplier->full_name); ?></td> </tr> <tr> <td><b><?php echo e(__t('supplier_phone')); ?></b></td> <td>:</td> <td><?php echo e($purchase->supplier->phone); ?></td> </tr> <tr> <td><b><?php echo e(__t('warehouse')); ?></b></td> <td>:</td> <td><?php echo e($purchase->warehouse->name); ?></td> </tr> <tr> <td><b><?php echo e(__t('company')); ?></b></td> <td>:</td> <td><?php echo e($purchase->company); ?></td> </tr> <tr> <td><b><?php echo e(__t('date')); ?></b></td> <td>:</td> <td><?php echo e(date('Y-m-d', strtotime($purchase->date))); ?></td> </tr> <tr> <td><b><?php echo e(__t('note')); ?></b></td> <td>:</td> <td><?php echo e($purchase->notes); ?></td> </tr> <tr> <td><b><?php echo e(__t('short_address')); ?></b></td> <td>:</td> <td><?php echo e($purchase->short_address); ?></td> </tr> </table> </td> <td> <table class="ic-purchase-print" width="100%" cellpadding="0" cellspacing="0"> <tr> <td><b><?php echo e(__t('address_line_1')); ?></b></td> <td>:</td> <td><?php echo e($purchase->address_line_1); ?></td> </tr> <tr> <td><b><?php echo e(__t('address_line_2')); ?></b></td> <td>:</td> <td><?php echo e($purchase->address_line_2); ?></td> </tr> <tr> <td><b><?php echo e(__t('country')); ?></b></td> <td>:</td> <td><?php echo e(optional($purchase->systemCountry)->name); ?></td> </tr> <tr> <td><b><?php echo e(__t('state')); ?></b></td> <td>:</td> <td><?php echo e(optional($purchase->systemState)->name); ?></td> </tr> <tr> <td><b><?php echo e(__t('city')); ?></b></td> <td>:</td> <td><?php echo e(optional($purchase->systemCity)->name); ?></td> </tr> <tr> <td><b><?php echo e(__t('status')); ?></b></td> <td>:</td> <td> <?php if($purchase->status == \App\Models\Purchase::STATUS_REQUESTED): ?> <span class="badge badge-primary"><?php echo e(strtoupper($purchase->status)); ?></span> <?php elseif($purchase->status == \App\Models\Purchase::STATUS_CONFIRMED): ?> <span class="badge badge-success"><?php echo e(strtoupper($purchase->status)); ?></span> <?php else: ?> <span class="badge badge-danger"><?php echo e(strtoupper($purchase->status)); ?></span> <?php endif; ?> </td> </tr> </table> </td> </tr> </table> </div> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="date" class="pt-2"><?php echo e(__t('return_date')); ?> <span class="error">*</span></label> <input type="text" class="form-control datepicker-autoclose" name="return_date" id="date" value="<?php echo e(old('return_date')); ?>" required placeholder="<?php echo e(__t('date')); ?>" autocomplete="off"> <?php $__errorArgs = ['date']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="error"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="return_note" class="pt-2"><?php echo e(__t('return_note')); ?> <span class="error">*</span></label> <textarea name="return_note" id="return_note" required class="form-control" placeholder="<?php echo e(__t('note')); ?>"><?php echo e(old('return_note')); ?></textarea> <?php $__errorArgs = ['return_note']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="error"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-bordered ic-table-return"> <thead> <tr> <th rowspan="2" class="align-middle"><?php echo e(__t('sl')); ?></th> <th rowspan="2" class="align-middle"><?php echo e(__t('sku')); ?></th> <th rowspan="2" class="align-middle"><?php echo e(__t('product_name')); ?></th> <th colspan="3" class="text-center"><?php echo e(__t('purchase_receive')); ?></th> <th class="text-center" width="10%"><?php echo e(__t('product_stock')); ?></th> <th class="text-center" width="10%"><?php echo e(__t('return')); ?></th> <th colspan="3" class="text-center"><?php echo e(__t('purchase_return')); ?></th> </tr> <tr> <th><?php echo e(__t('quantity')); ?></th> <th><?php echo e(__t('price')); ?></th> <th><?php echo e(__t('sub_total')); ?></th> <th class="text-center"><?php echo e(__t('quantity')); ?></th> <th class="text-center"><?php echo e(__t('quantity')); ?></th> <th><?php echo e(__t('quantity')); ?></th> <th><?php echo e(__t('price')); ?></th> <th><?php echo e(__t('sub_total')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $purchase->purchaseItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $purchaseItems): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $stockQty = optional($purchaseItems->product)->warehouseStock($purchase->warehouse_id); $stockAvailableQty = 0; $availAbleQty = $purchaseItems->receiveItems->sum('quantity') - optional($purchaseItems->returnItem)->sum('quantity'); if ($stockQty > $availAbleQty){ $stockAvailableQty = $availAbleQty; }else{ $stockAvailableQty = $stockQty; } ?> <tr> <td><?php echo e($key+1); ?></td> <td> <?php echo e($purchaseItems->product->sku); ?> <input type="hidden" name="product_id[]" value="<?php echo e($purchaseItems->product_id); ?>"> <input type="hidden" name="product_stock_id[]" value="<?php echo e($purchaseItems->product_stock_id); ?>"> <input type="hidden" name="purchase_item_id[]" value="<?php echo e($purchaseItems->id); ?>"> <input type="hidden" name="receive_quantity[]" value="<?php echo e($purchaseItems->receiveItems->sum('quantity')); ?>"> </td> <td><?php echo e($purchaseItems->product->name); ?></td> <td> <span id="order_quantity_<?php echo e($key+1); ?>"><?php echo e($purchaseItems->receiveItems->sum('quantity')); ?></span> </td> <td class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat(($purchaseItems->price))); ?></td> <td class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat(($purchaseItems->sub_total))); ?></td> <td class="text-center"><?php echo e($stockQty); ?></td> <td class="text-center"><?php echo e($purchaseItems->returnItem->sum('quantity')); ?> </td> <td> <input type="hidden" id="stock_available_qty_<?php echo e($key+1); ?>" value="<?php echo e($stockAvailableQty); ?>"> <input type="hidden" id="available_qty_<?php echo e($key+1); ?>" value="<?php echo e($availAbleQty); ?>"> <input type="number" class="form-control form-control-sm ic-return-calculate-input" rel="<?php echo e($key+1); ?>" min="0" id="return_quantity_<?php echo e($key+1); ?>" <?php if($stockAvailableQty==0): ?> readonly <?php endif; ?> name="return_quantity[]"> <?php if($stockAvailableQty == 0): ?> <small class="text-danger"><?php echo e(__t('no_available_quantity_for_return')); ?></small> <?php endif; ?> </td> <td> <input type="number" class="form-control form-control-sm ic-return-calculate-input" rel="<?php echo e($key+1); ?>" value="<?php echo e($purchaseItems->price); ?>" id="return_price_<?php echo e($key+1); ?>" <?php if($stockAvailableQty==0): ?> readonly <?php endif; ?> name="return_price[]"> </td> <td> <input type="number" readonly class="form-control form-control-sm sub_total" id="return_sub_total_<?php echo e($key+1); ?>" name="return_sub_total[]"> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> <tfoot> <tr> <th colspan="5" class="text-right"><?php echo e(__t('total')); ?>:</th> <th class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat($purchase->total)); ?> </th> <th colspan="4" class="text-right"><?php echo e(__t('total')); ?>:</th> <th class="text-right"> <input name="total" class="form-control form-control-sm total" readonly> </th> </tr> </tfoot> </table> </div> </div> </div> <div class="row"> <div class="col-sm-12 mt-3"> <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> <?php echo e(__t('submit')); ?></button> <a class="btn btn-danger" href="<?php echo e(route('admin.purchases.index')); ?>"><i class="fa fa-times"></i> <?php echo e(__t('cancel')); ?></a> </div> </div> </div> </form> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <?php $__env->stopPush(); ?> <?php $__env->startPush('style'); ?> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/inventory_main/resources/views/admin/purchase/return.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings