|
@@ -10,16 +10,18 @@
|
|
|
|
|
|
background-color: hsl(315, 22%, 86%);
|
|
|
}
|
|
|
- .required{
|
|
|
- color:red;
|
|
|
+
|
|
|
+ .required {
|
|
|
+ color: red;
|
|
|
}
|
|
|
+
|
|
|
.py-5 {
|
|
|
padding-top: 0 !important;
|
|
|
}
|
|
|
</style>
|
|
|
@endslot
|
|
|
@slot('subject')
|
|
|
- <h1><i class="fa fa-users"></i> ثبت دسنه جدید </h1>
|
|
|
+ <h1><i class="fa fa-users"></i> ثبت دسته جدید </h1>
|
|
|
|
|
|
@endslot
|
|
|
@slot('breadcrumb')
|
|
@@ -35,14 +37,14 @@
|
|
|
<div class="card-header"><strong>{{ __('ثبت دسته بندی جدید') }}</strong></div>
|
|
|
|
|
|
<div class="card-body mx-lg-5 px-lg-3">
|
|
|
- <form method="POST" action="{{ route('categories-products.store') }}">
|
|
|
+ <form method="POST" action="{{ route('categories.store') }}">
|
|
|
@csrf
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label for="title">{{ __('نام دسته ') }}</label><i class="required"> *</i>
|
|
|
<input id="title" type="text"
|
|
|
class="form-control @error('title') is-invalid @enderror" name="title"
|
|
|
- value="{{ old('title') }}" required autocomplete="title" autofocus>
|
|
|
+ value="{{ old('title') }}" autocomplete="title" autofocus>
|
|
|
|
|
|
@error('title')
|
|
|
<span class="invalid-feedback" role="alert">
|
|
@@ -56,7 +58,7 @@
|
|
|
<label for="slug"> {{ __('slug ') }}</label>
|
|
|
<input id="slug" type="text"
|
|
|
class="form-control @error('slug') is-invalid @enderror"
|
|
|
- name="slug" value="{{ old('slug') }}" required
|
|
|
+ name="slug" value="{{ old('slug') }}"
|
|
|
autocomplete="slug" autofocus>
|
|
|
|
|
|
@error('slug')
|
|
@@ -67,10 +69,10 @@
|
|
|
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <label for="parent"> {{ __('parent ') }}</label>
|
|
|
+ <label for="parent"> {{ __('parent ') }}</label><i class="required"> *</i>
|
|
|
<input id="parent" type="text"
|
|
|
class="form-control @error('parent') is-invalid @enderror"
|
|
|
- name="parent" value="{{ old('parent') }}" required
|
|
|
+ name="parent" value="{{ old('parent') }}"
|
|
|
autocomplete="parent" autofocus>
|
|
|
|
|
|
@error('parent')
|
|
@@ -82,12 +84,14 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
- <label for="category_type">{{ __(' نوع دسته ') }}</label><i class="required"> *</i>
|
|
|
+ <label for="category_type">{{ __(' نوع دسته ') }}</label><i class="required">
|
|
|
+ *</i>
|
|
|
<select id="category_type" type="text"
|
|
|
class="form-control @error('category_type') is-invalid @enderror"
|
|
|
name="category_type"
|
|
|
required autocomplete="category_type">
|
|
|
<option value="1">محصولات</option>
|
|
|
+ <option value="0">اخبار</option>
|
|
|
<option value="0">دسته بندی</option>
|
|
|
</select>
|
|
|
|
|
@@ -100,7 +104,7 @@
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
- <label for="discription">{{ __(' توضیحات دسته ') }}</label>
|
|
|
+ <label for="discription">{{ __(' توضیحات دسته ') }}</label><i class="required"> *</i>
|
|
|
<textarea id="discription" type="text"
|
|
|
class="form-control @error('discription') is-invalid @enderror"
|
|
|
name="discription"
|
|
@@ -112,30 +116,14 @@
|
|
|
</span>
|
|
|
@enderror
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
- <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>
|
|
|
-
|
|
|
- @error('creator_id')
|
|
|
- <span class="invalid-feedback" role="alert">
|
|
|
- <strong>{{ $message }}</strong>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- </div>
|
|
|
-
|
|
|
<div class="form-group mb-0">
|
|
|
<div class="">
|
|
|
<button type="submit" class="btn btn-primary">
|
|
|
{{ __('ثبت دسته بندی') }}
|
|
|
</button>
|
|
|
|
|
|
- <a href={{ route('categories-products.index') }} type="button" class="btn btn-warning">
|
|
|
+ <a href={{ route('categories.index') }} type="button"
|
|
|
+ class="btn btn-warning">
|
|
|
انصراف</a>
|
|
|
|
|
|
</div>
|