[
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.category_edit')) @section('content') <x-container title="Add Category" buttonTitle="Back" buttonRoute="{{ route('categories.index') }}"> <form id="websiteSettingForm" method="post" action="{{ route('categories.update', $category->id) }}" enctype="multipart/form-data"> @csrf @method('put') <div class="row g-2 justify-content-center"> <div class="col-lg-6 row g-2"> <div class="col-sm-12"> <label class="form-label">{{ translate('common.Title') }}</label> <input type="text" name="title" value="{{ $category->title }}" placeholder="{{ translate('common.Title') }}" class="form-control"> @error('title') <span class="text-danger">{{ $message }}</span> @enderror </div> <div class="col-md-12"> <label for="image" class="form-label file-selectore"> <span class="label">{{ translate('common.Select category image (size: 140 × 140 px)') }}</span> </label> <div class="d-block my-2"> @if ($category->image) <img height="250" class="img-fluid" src="{{ globalAsset($category->image) }}" alt=""> @endif </div> <input type="file" name="image" id="image"> </div> <div class="col-md-12"> <label for="image" class="form-label file-selectore"> <span class="label">{{ translate('common.Select banner image (size: 1350 × 250 px)') }}</span> </label> <div class="d-block my-2"> @if ($category->banner) <img height="250" class="img-fluid" src="{{ globalAsset($category->banner) }}" alt=""> @endif </div> <input type="file" name="banner" id="banner"> </div> <div class="col-sm-6"> <label class="form-label">{{ translate('common.Sorting') }}</label> <input type="number" value="{{ $category->sorting }}" name="sorting" placeholder="Enter sorting" class="form-control"> @error('sorting') <span class="text-danger">{{ $message }}</span> @enderror </div> <div class="col-sm-6"> <label class="form-label d-block">{{ translate('common.Status') }}</label> <div class="form-check form-check-inline"> <input class="form-check-input" @if ($category->status == 'active') checked @endif type="radio" name="status" id="active" value="active"> <label class="form-check-label" for="active">{{ translate('common.Active') }}</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" @if ($category->status == 'inactive') checked @endif type="radio" name="status" id="inactive" value="inactive"> <label class="form-check-label" for="inactive">{{ translate('common.Inactive') }}</label> </div> @error('status') <span class="text-danger">{{ $message }}</span> @enderror </div> <div class="col-lg-12"> <div class="row"> <div class="col-lg-6 mb-3"> <div class="form-check"> <input type="hidden" name="show_in_home" value="0"> <input @if ($category->show_in_home) checked @endif class="form-check-input" name="show_in_home" type="checkbox" value="1" id="home"> <label class="form-check-label" for="home"> {{ translate('common.Show in home') }} </label> </div> </div> <div class="col-lg-6 mb-3"> <div class="form-check"> <input type="hidden" name="show_in_menu" value="0"> <input @if ($category->show_in_menu) checked @endif class="form-check-input" name="show_in_menu" type="checkbox" value="1" id="top-menu"> <label class="form-check-label" for="top-menu"> {{ translate('common.Show in top menu') }} </label> </div> </div> <div class="col-lg-6 mb-3"> <div class="form-check"> <input type="hidden" name="top_category" value="0"> <input @if ($category->top_category) checked @endif class="form-check-input" name="top_category" type="checkbox" value="1" id="top-category"> <label class="form-check-label" for="top-category"> {{ translate('common.Top Category') }} </label> </div> </div> </div> </div> <div class="col-sm-12"> <label class="form-label d-block">{{ translate('common.Type') }}</label> <div class="form-check form-check-inline"> <input class="form-check-input" @if ($category->type == 'inventory') checked @endif type="radio" name="type" id="inventory" value="inventory"> <label class="form-check-label" for="inventory">{{ translate('common.Inventory') }}</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" @if ($category->type == 'ecommerce') checked @endif type="radio" name="type" id="ecommerce" value="ecommerce"> <label class="form-check-label" for="ecommerce">{{ translate('common.Ecommerce') }}</label> </div> @error('type') <span class="text-danger">{{ $message }}</span> @enderror </div> <div class="gap-3 mt-2 text-end"> <button type="submit" class="btn btn-primary btn-border btn-success"> <span>{{ translate('common.submit') }} </span> </button> </div> </div> </div> </form> </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.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