File manager - Edit - /var/www/payraty/inventory_main/storage/framework/views/155136654076b34bae35f3a48cd5b9b3cb0c5e24.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('receive').' '.__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.receive.store', $purchase->id)); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <input type="hidden" name="warehouse_id" value="<?php echo e($purchase->warehouse->id ?? null); ?>"> <div class="card-body"> <h4 class="header-title"><?php echo e(__t('receive').' '.__t('purchase')); ?></h4> <div class="row"> <div class="col-lg-4"> <div class="form-group"> <label for="date" class="pt-2"><?php echo e(__t('receive_date')); ?> <span class="error">*</span></label> <input type="text" class="form-control datepicker-autoclose" name="date" id="date" value="<?php echo e(old('date') ?? date('Y-m-d')); ?>" 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> <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-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_order')); ?></th> <th colspan="3" class="text-center"><?php echo e(__t('purchase_order_received')); ?> </th> <th colspan="3" class="text-center"><?php echo e(__t('purchase_receive')); ?></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><?php echo e(__t('quantity')); ?></th> <th><?php echo e(__t('price')); ?></th> <th><?php echo e(__t('sub_total')); ?></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 $availableQty = $purchaseItems->quantity - $purchaseItems->receiveItems->sum('quantity') ?> <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="purchase_item_id[]" value="<?php echo e($purchaseItems->id); ?>"> <input type="hidden" name="product_stock_id[]" value="<?php echo e($purchaseItems->product_stock_id); ?>"> </td> <td> <?php echo e($purchaseItems->product->name); ?> <?php if($purchaseItems->product->is_variant != null && $purchaseItems->product->is_variant == 1 && isset($purchaseItems->productStock)): ?> (<?php echo e(optional(optional($purchaseItems->productStock)->attribute)->name ?? ''); ?> : <?php echo e(optional(optional($purchaseItems->productStock)->attributeItem)->name ?? ''); ?>) <?php endif; ?> </td> <td><span id="order_quantity_<?php echo e($key+1); ?>"><?php echo e($purchaseItems->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><?php echo e($purchaseItems->receiveItems->sum('quantity')); ?></td> <td class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat($purchaseItems->receiveItems->sum('price'))); ?></td> <td class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat($purchaseItems->receiveItems->sum('sub_total'))); ?></td> <td> <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-calculate-input" rel="<?php echo e($key+1); ?>" min="0" id="receive_quantity_<?php echo e($key+1); ?>" <?php if($availableQty==0): ?> readonly <?php endif; ?> name="receive_quantity[]"> <?php if($availableQty == 0): ?> <small class="text-danger"><?php echo e(__t('no_available_quantity_for_receive')); ?></small> <?php endif; ?> </td> <td> <input type="number" class="form-control form-control-sm ic-calculate-input" rel="<?php echo e($key+1); ?>" value="<?php echo e($purchaseItems->price); ?>" id="receive_price_<?php echo e($key+1); ?>" <?php if($availableQty==0): ?> readonly <?php endif; ?> name="receive_price[]"> </td> <td> <input type="number" readonly class="form-control form-control-sm sub_total" id="receive_sub_total_<?php echo e($key+1); ?>" name="receive_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="2" class="text-right"><?php echo e(__t('total')); ?>:</th> <th class="text-right"><?php echo e(currencySymbol().makeCurrencyFormat(($purchase->purchaseReceives->sum('total')))); ?></th> <th colspan="2" class="text-right"><?php echo e(__t('total')); ?>:</th> <th class="text-right"> <input name="total" class="form-control 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><span> <?php echo e(__t('submit')); ?></span></button> <a class="btn btn-danger" href="<?php echo e(route('admin.purchases.index')); ?>"><i class="fa fa-times"></i> <span><?php echo e(__t('cancel')); ?></span></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/receive.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings