|
@@ -1,124 +0,0 @@
|
|
-@component('panel.layouts.component', ['title' => 'ثبت محصول جدید'])
|
|
|
|
-
|
|
|
|
- @slot('style')
|
|
|
|
-
|
|
|
|
- @endslot
|
|
|
|
- @slot('subject')
|
|
|
|
- <h1><i class="fa fa-users"></i> ثبت محصول جدید </h1>
|
|
|
|
- <p>ثبت محصول جدید در فروشگاه.</p>
|
|
|
|
- @endslot
|
|
|
|
- @slot('breadcrumb')
|
|
|
|
- <li class="breadcrumb-item">محصولات</li>
|
|
|
|
- @endslot
|
|
|
|
-
|
|
|
|
- @slot('content')
|
|
|
|
- <div class="auth-background h-auto py-5">
|
|
|
|
- <div class="container py-5">
|
|
|
|
- <div class="row align-items-center ">
|
|
|
|
- <div class="col-lg-12 col-md-12 mx-auto">
|
|
|
|
- <div class="card">
|
|
|
|
- <div class="card-header">
|
|
|
|
- <strong>{{ __('ثبت محصول جدید') }}</strong>
|
|
|
|
- </div>
|
|
|
|
- @component('product::components.message')
|
|
|
|
- @endcomponent
|
|
|
|
- <div class="card-body mx-lg-5 px-lg-3">
|
|
|
|
- <form method="POST" action="{{ route('products.store') }}" enctype="multipart/form-data" >
|
|
|
|
- @csrf
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="title">{{ __('product.title') }}</label><i class="required"> *</i>
|
|
|
|
- <input id="title" type="text" class="form-control @error('title') is-invalid @enderror" name="title" value="{{ old('title') }}" autocomplete="title" autofocus>
|
|
|
|
- @error('title')
|
|
|
|
- <span class="invalid-feedback" role="alert">
|
|
|
|
- <strong>{{ $message }}</strong>
|
|
|
|
- </span>
|
|
|
|
- @enderror
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="form-row">
|
|
|
|
- <div class="form-group col-lg-4">
|
|
|
|
- <label for="slug">{{ __('product.slug') }}</label>
|
|
|
|
- <input type="text" name="slug" class="form-control @error('slug') is-invalid @enderror" value="{{old('slug')}}" autocomplete="slug" autofocus>
|
|
|
|
- @error('slug')
|
|
|
|
- <div class="alert alert-danger">{{$message}}</div>
|
|
|
|
- @enderror
|
|
|
|
- </div>
|
|
|
|
- <div class="form-group col-lg-4">
|
|
|
|
- <label for="sku">{{ __('product.sku') }}</label>
|
|
|
|
- <input id="sku" type="text" class="form-control @error('sku') is-invalid @enderror" name="sku"
|
|
|
|
- autocomplete="sku" value="{{ old('sku') }}" autofocus>
|
|
|
|
- @error('sku')
|
|
|
|
- <span class="invalid-feedback" role="alert">
|
|
|
|
- <strong>{{ $message }}</strong>
|
|
|
|
- </span>
|
|
|
|
- @enderror
|
|
|
|
- </div>
|
|
|
|
- <div class="form-group col-lg-4">
|
|
|
|
- <label for="type">{{ __('product.type') }}</label></label><i class="required"> *</i>
|
|
|
|
- <select id="type" type="text" class="form-control @error('type') is-invalid @enderror" name="type" value="{{ old('type') }}" autocomplete="type">
|
|
|
|
- <option value="">انتخاب کنید</option>
|
|
|
|
- <option value="0" {{ (old('type') == '0') ? 'selected' : '' }}>ساده</option>
|
|
|
|
- <option value="1" {{ (old('type') == '1') ? 'selected' : '' }}>متغیر</option>
|
|
|
|
- <option value="2" {{ (old('type') == '2') ? 'selected' : '' }}>باندل</option>
|
|
|
|
- </select>
|
|
|
|
- @error('type')
|
|
|
|
- <span class="invalid-feedback" role="alert">
|
|
|
|
- <strong>{{ $message }}</strong>
|
|
|
|
- </span>
|
|
|
|
- @enderror
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="form-group col-lg-4">
|
|
|
|
- <label for="status">{{ __('product.ReleaseStatus') }}</label><i class="required"> *</i>
|
|
|
|
- <select id="ReleaseStatus" type="text" class="form-control @error('ReleaseStatus') is-invalid @enderror" name="ReleaseStatus" value="{{ old('ReleaseStatus') }}" autocomplete="ReleaseStatus">
|
|
|
|
-
|
|
|
|
- <option value="draft" {{ (old('ReleaseStatus') == 'draft') ? 'selected' : '' }}>پیشنویس</option>
|
|
|
|
- <option value="pending" {{ (old('ReleaseStatus') == 'pending') ? 'selected' : '' }}>در انتظار انتشار</option>
|
|
|
|
- <option value="published" {{ (old('ReleaseStatus') == 'published') ? 'selected' : '' }}>منتشر شده</option>
|
|
|
|
- </select>
|
|
|
|
- @error('ReleaseStatus')
|
|
|
|
- <span class="invalid-feedback" role="alert">
|
|
|
|
- <strong>{{ $message }}</strong>
|
|
|
|
- </span>
|
|
|
|
- @enderror
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="discription">{{ __('product.discription') }}</label></label><i class="required"> *</i>
|
|
|
|
- <textarea id="discription" type="text"class="form-control editor @error('discription') is-invalid @enderror" name="discription" autocomplete="discription" autofocus>
|
|
|
|
- {{ old('discription') }}
|
|
|
|
- </textarea>
|
|
|
|
-
|
|
|
|
- @error('discription')
|
|
|
|
- <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('products.index') }}" type="button" class="btn btn-warning" > انصراف</a>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
- <div class="card-footer">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- @endslot
|
|
|
|
-
|
|
|
|
- @slot('script')
|
|
|
|
-
|
|
|
|
- @endslot
|
|
|
|
-
|
|
|
|
-@endcomponent
|
|
|
|
-
|
|
|