Current File : //home/tradevaly/prioyshi.com/project/resources/views/admin/category/edit.blade.php |
@extends('layouts.load')
@section('content')
<div class="content-area">
<div class="add-product-content">
<div class="row">
<div class="col-lg-12">
<div class="product-description">
<div class="body-area" id="modalEdit">
@include('includes.admin.form-error')
<form id="geniusformdata" action="{{route('admin-cat-update',$data->id)}}" method="POST" enctype="multipart/form-data">
{{csrf_field()}}
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">{{ __('Name') }} *</h4>
<p class="sub-heading">{{ __('(In Any Language)') }}</p>
</div>
</div>
<div class="col-lg-7">
<input type="text" class="input-field" name="name" placeholder="{{ __('Enter Name') }}" required="" value="{{$data->name}}">
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">{{ __('Slug') }} *</h4>
<p class="sub-heading">{{ __('(In English)') }}</p>
</div>
</div>
<div class="col-lg-7">
<input type="text" class="input-field" name="slug" placeholder="{{ __('Enter Slug') }}" required="" value="{{$data->slug}}">
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">{{ __('Current Icon') }} *</h4>
</div>
</div>
<div class="col-lg-7">
<div class="img-upload">
<div id="image-preview" class="img-preview" style="background: url({{ $data->photo ? asset('assets/images/categories/'.$data->photo):asset('assets/images/noimage.png') }});">
<label for="image-upload" class="img-label" id="image-label"><i class="icofont-upload-alt"></i>{{ __('Upload Icon') }}</label>
<input type="file" name="photo" class="img-upload" id="image-upload">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
</div>
</div>
<div class="col-lg-7">
<div class="checkbox-wrapper">
<input type="checkbox" name="is_featured" class="checkclick" id="is_featured" value="1" {{ $data->is_featured != 0 ? "checked":"" }}>
<label for="is_featured">{{ __('Allow Featured Category') }}</label>
</div>
</div>
</div>
<div class="{{ $data->is_featured == 0 ? "showbox":"" }}">
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">{{ __('Current Featured Image') }}*</h4>
</div>
</div>
<div class="col-lg-7">
<div class="img-upload">
<div id="image-preview" class="img-preview" style="background: url({{ $data->image ? asset('assets/images/categories/'.$data->image):asset('assets/images/noimage.png') }});">
<label for="image-upload" class="img-label"><i class="icofont-upload-alt"></i>{{ __('Upload Image') }}</label>
<input type="file" name="image" class="img-upload">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">{{ __('Meta Title') }} *</h4>
</div>
</div>
<div class="col-lg-7">
<input type="text" class="input-field" name="meta_title" placeholder="{{ __('Meta Title') }}" value="{{$data->meta_title}}">
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
<h4 class="heading">
{{ __('Meta Description') }} *
</h4>
</div>
</div>
<div class="col-lg-7">
<div class="text-editor">
<textarea class="input-field" name="meta_description" placeholder="{{ __('Meta Description') }}">{{$data->meta_description}}</textarea>
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-lg-4">
<div class="left-area">
</div>
</div>
<div class="col-lg-7">
<button class="addProductSubmit-btn" type="submit">{{ __('Save') }}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection