[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: form.blade.php
<div class="col-md-4 input-component mb-2"> <label for="" class="form-label fw-bold d-flex justify-content-between align-items-center"> <span>{{ translate('common.Barcode') }} <span class="text-danger">*</span></span> </label> <div class="input-group"> <input type="text" class="form-control" id="barcode_input" placeholder="Enter Here" value="" name="qr_code"> <button class="btn btn-outline-secondary" type="button" id="barcodeGenerate"><i class="fa fa-barcode"></i></button> </div> </div> <x-form.input name="name" label="Name" :required="true" value="{{ @old('name', @$medicine->name) }}" col="col-md-4"> </x-form.input> <x-form.input name="generic_name" label="Generic Name" :required="true" value="{{ @old('generic_name', @$medicine->generic_name) }}" col="col-md-4"> </x-form.input> <x-form.select name="supplier_id" label="supplier" :required="true" addButtonUrl="{{ route('supplier.create') }}" col="col-md-4"> @foreach ($suppliers as $supplier) <option {{ old('supplier_id', @$medicine->supplier_id) == $supplier->id ? 'selected':'' }} value="{{ $supplier->id }}">{{ $supplier->name }} </option> @endforeach </x-form.select> <x-form.select name="leaf_id" label="Leaf or Box Size" addButtonUrl="{{ route('leaf.create') }}" col="col-md-4"> @foreach ($leafs as $leaf) <option value="{{ $leaf->id }}" {{ old('leaf_id', @$medicine->leaf_id) == $leaf->id ? 'selected':'' }}>{{ $leaf->name }} ({{ $leaf->amount }})</option> @endforeach </x-form.select> <x-form.select name="vendor_id" label="Vendor" addButtonUrl="{{ route('vendor.create') }}" col="col-md-4"> @foreach ($vendors as $vendor) <option {{ old('vendor_id', @$medicine->vendor_id) == $vendor->id ? 'selected':'' }} value="{{ $vendor->id }}">{{ $vendor->name }} </option> @endforeach </x-form.select> <x-form.input name="quantity" label="Quantity" value="{{ @old('quantity', @$medicine->quantity) }}" col="col-md-4"> </x-form.input> <x-form.input name="price" label="price" value="{{ @old('price', @$medicine->price) }}" col="col-md-4"> </x-form.input> <x-form.input name="buy_price" label="Buy Price" value="{{ @old('buy_price', @$medicine->buy_price) }}" col="col-md-4"> </x-form.input> <x-form.input name="vat" label="vat" value="{{ @old('vat', @$medicine->vat) }}" col="col-md-4"> </x-form.input> <x-form.input name="igta" label="igta" value="{{ @old('igta', @$medicine->igta) }}" col="col-md-4"> </x-form.input> <x-form.input name="shelf" label="shelf" value="{{ @old('shelf', @$medicine->shelf) }}" col="col-md-4"> </x-form.input> <x-form.input name="hns_code" label="Hns Code" value="{{ @old('hns_code', @$medicine->hns_code) }}" col="col-md-4"> </x-form.input> <x-form.input name="strength" label="Strength" value="{{ @old('strength', @$medicine->strength) }}" col="col-md-4"> </x-form.input> <x-form.file name="image" label="image" value="{{ @old('image', @globalAsset(@$medicine->image)) }}" col="col-md-4"> </x-form.file> <x-form.select name="status" label="Status" :required="true" col="col-md-4"> <option value="active" selected {{ old('status', @$medicine->status) == 'active' ? 'selected':'' }}>{{ translate('Active') }}</option> <option value="inactive" {{ old('status', @$medicine->status) == 'inactive' ? 'selected':'' }}>{{ translate('Inactive') }}</option> </x-form.select> <x-form.select name="type" label="Medicine For" col="col-md-4"> <option value="inventory" selected {{ old('type', @$medicine->type) == 'inventory' ? 'selected':'' }}>{{ translate('common.inventory') }}</option> <option value="ecommerce" {{ old('type', @$medicine->type) == 'ecommerce' ? 'selected':'' }}>{{ translate('common.ecommerce') }}</option> <option value="global" {{ old('type', @$medicine->type) == 'global' ? 'selected':'' }}>{{ translate('common.both') }}</option> </x-form.select> <div class="col-lg-12 mb-3"> <div class="d-flex gap-2"> <h4> {{ translate('common.Select Categories') }} </h4> <a href="{{ route('categories.create') }}">{{ translate('Add new') }}</a> </div> <div class="row"> @php $selectedCategories = json_decode(@$medicine->categories, true) ?? [] @endphp @foreach ($categories as $category) <div class="col-lg-3"> <div class="form-check"> <input class="form-check-input" name="product_categories[]" type="checkbox" value="{{ $category->id }}" @if (is_array($selectedCategories)) @if (in_array($category->id, $selectedCategories)) checked @endif @endif id="productCategory{{ $category->id }}"> <label class="form-check-label" for="productCategory{{ $category->id }}"> {{ $category->title }} </label> </div> </div> @endforeach </div> </div> <x-form.textarea name="description" label="Description" value="{{ @old('description', $medicine->description) }}" col="col-md-12"> </x-form.textarea>
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.81 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