74 lines
3.8 KiB
PHP
74 lines
3.8 KiB
PHP
@extends('layouts.master')
|
|
|
|
@section('title')
|
|
{{ __('Edit Feature') }}
|
|
@endsection
|
|
|
|
@section('main_content')
|
|
<div class="erp-table-section">
|
|
<div class="container-fluid">
|
|
<div class="card shadow-sm">
|
|
<div class="card-bodys">
|
|
<div class="table-header p-16">
|
|
<h4>{{ __('Edit Feature') }}</h4>
|
|
<div>
|
|
<a href="{{ route('admin.features.index') }}" class="theme-btn print-btn text-light">
|
|
<i class="fas fa-list me-1"></i>
|
|
{{ __("View List") }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="order-form-section p-16">
|
|
<form action="{{ route('admin.features.update', $feature->id) }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
|
|
@csrf
|
|
@method('put')
|
|
|
|
<div class="add-suplier-modal-wrapper">
|
|
<div class="row">
|
|
<div class="col-lg-6 mt-2">
|
|
<label>{{ __('Title') }}</label>
|
|
<input type="text" name="title" value="{{ $feature->title }}" required class="form-control" placeholder="{{ __('Enter Title') }}" >
|
|
</div>
|
|
|
|
<div class="col-lg-6 mt-2">
|
|
<label>{{ __('Backgroud Color') }}</label>
|
|
<input type="color" name="bg_color" value="{{ $feature->bg_color }}" required class="form-control m-h-48" placeholder="{{ __('Enter Color') }}" >
|
|
</div>
|
|
|
|
<div class="col-lg-6 mt-2">
|
|
<label>{{ __('Status') }}</label>
|
|
<div class="gpt-up-down-arrow position-relative">
|
|
<select name="status" required="" class="form-control select-dropdown">
|
|
<option @selected($feature->status == 1) value="1">{{ __('Active') }}</option>
|
|
<option @selected($feature->status == 0) value="0">{{ __('Deactive') }}</option>
|
|
</select>
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-5 mt-2 align-self-center">
|
|
<label class="img-label">{{ __('Image') }}</label>
|
|
<input type="file" name="image" class="form-control">
|
|
</div>
|
|
|
|
<div class="col-lg-1 mt-2 align-self-center mt-4">
|
|
<img class="table-img" src="{{ asset($feature->image) }}" alt="img">
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="button-group text-center mt-5">
|
|
<a href="" class="theme-btn border-btn m-2">{{__('Cancel')}}</a>
|
|
<button class="theme-btn m-2 submit-btn">{{__('Update')}}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|