|
@@ -1,9 +1,16 @@
|
|
|
@component('panel.layouts.component', ['title' => 'ثبت محصول جدید'])
|
|
|
|
|
|
@slot('style')
|
|
|
- .card-header {
|
|
|
- text-align: center !important;
|
|
|
- }
|
|
|
+ <style>
|
|
|
+ .card-header {
|
|
|
+ text-align: center !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-control {
|
|
|
+
|
|
|
+ background-color: hsl(315, 22%, 86%);
|
|
|
+ }
|
|
|
+ </style>
|
|
|
@endslot
|
|
|
@slot('subject')
|
|
|
<h1><i class="fa fa-users"></i> ثبت محصول جدید </h1>
|
|
@@ -19,14 +26,14 @@
|
|
|
<div class="row align-items-center">
|
|
|
<div class="col-lg-8 col-md-10 mx-auto">
|
|
|
<div class="card">
|
|
|
- <div class="card-header"><strong>{{ __('ثبتدسته بندی جدید') }}</strong></div>
|
|
|
+ <div class="card-header"><strong>{{ __('ثبت دسته بندی جدید') }}</strong></div>
|
|
|
|
|
|
<div class="card-body mx-lg-5 px-lg-3">
|
|
|
- <form method="POST" action="{{ route('categories.store') }}">
|
|
|
+ <form method="POST" action="">
|
|
|
@csrf
|
|
|
|
|
|
<div class="form-group">
|
|
|
- <label for="title">{{ __('نام محصول جدید') }}</label>
|
|
|
+ <label for="title">{{ __('نام دسته جدید') }}</label>
|
|
|
<input id="title" type="text"
|
|
|
class="form-control @error('title') is-invalid @enderror" name="title"
|
|
|
value="{{ old('title') }}" required autocomplete="title" autofocus>
|
|
@@ -40,7 +47,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
- <label for="slug"> {{ __('نام مستعار محصول ') }}</label>
|
|
|
+ <label for="slug"> {{ __('نام مستعار دسته ') }}</label>
|
|
|
<input id="slug" type="text"
|
|
|
class="form-control @error('slug') is-invalid @enderror"
|
|
|
name="slug" value="{{ old('slug') }}" required
|
|
@@ -71,7 +78,8 @@
|
|
|
<div class="form-group">
|
|
|
<label for="category_type">{{ __(' نوع دسته بندی') }}</label>
|
|
|
<select id="category_type" type="text"
|
|
|
- class="form-control @error('category_type') is-invalid @enderror" name="category_type"
|
|
|
+ class="form-control @error('category_type') is-invalid @enderror"
|
|
|
+ name="category_type"
|
|
|
required autocomplete="category_type">
|
|
|
<option value="1">اصلی</option>
|
|
|
<option value="0">فرعی</option>
|
|
@@ -85,12 +93,13 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
-
|
|
|
<div class="form-group">
|
|
|
- <label for="discription">{{ __(' توضیحات محصول') }}</label>
|
|
|
+ <label for="discription">{{ __(' توضیحات دسته بندی') }}</label>
|
|
|
<textarea id="discription" type="text"
|
|
|
- class="form-control @error('discription') is-invalid @enderror" name="discription"
|
|
|
- required autocomplete="discription">{{ old('discription') }}</textarea>
|
|
|
+ class="form-control @error('discription') is-invalid @enderror"
|
|
|
+ name="discription"
|
|
|
+ required
|
|
|
+ autocomplete="discription">{{ old('discription') }}</textarea>
|
|
|
|
|
|
@error('discription')
|
|
|
<span class="invalid-feedback" role="alert">
|
|
@@ -103,8 +112,10 @@
|
|
|
<div class="form-group">
|
|
|
<label for="creator_id">{{ __(' نام ثبت کننده دسته بندی') }}</label>
|
|
|
<input id="creator_id" type="text"
|
|
|
- class="form-control @error('creator_id') is-invalid @enderror" name="creator_id"
|
|
|
- value="{{ auth()->user()->name }}" required autocomplete="creator_id" readonly>
|
|
|
+ class="form-control @error('creator_id') is-invalid @enderror"
|
|
|
+ name="creator_id"
|
|
|
+ value="{{ auth()->user()->name }}" required autocomplete="creator_id"
|
|
|
+ readonly>
|
|
|
|
|
|
@error('creator_id')
|
|
|
<span class="invalid-feedback" role="alert">
|
|
@@ -119,7 +130,8 @@
|
|
|
{{ __('ثبت دسته بندی') }}
|
|
|
</button>
|
|
|
|
|
|
- <a href={{ route('products.index') }} type="button" class="btn btn-warning"> انصراف</a>
|
|
|
+ <a href={{ route('products.index') }} type="button" class="btn btn-warning">
|
|
|
+ انصراف</a>
|
|
|
|
|
|
</div>
|
|
|
</div>
|