mirror of https://github.com/4xmen/xshop.git
parent
56acb26137
commit
84ad1c1584
@ -1,118 +1,119 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="name">
|
||||
{{__('Name')}}
|
||||
</label>
|
||||
<input name="name" type="text"
|
||||
id="name"
|
||||
class="form-control @error('name') is-invalid @enderror"
|
||||
placeholder="{{__('Name')}}"
|
||||
value="{{old('name',$item->name??null)}}"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="name">
|
||||
{{__('Name')}}
|
||||
</label>
|
||||
<input name="name" type="text"
|
||||
id="name"
|
||||
class="form-control @error('name') is-invalid @enderror"
|
||||
placeholder="{{__('Name')}}"
|
||||
value="{{old('name',$item->name??null)}}"/>
|
||||
</div>
|
||||
<div class="col-md-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="name">
|
||||
{{__('Slug')}}
|
||||
</label>
|
||||
<input name="slug" type="text"
|
||||
id="slug"
|
||||
class="form-control @error('slug') is-invalid @enderror"
|
||||
placeholder="{{__('Slug')}}"
|
||||
value="{{old('slug',$item->slug??null)}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="name">
|
||||
{{__('Slug')}}
|
||||
</label>
|
||||
<input name="slug" type="text"
|
||||
id="slug"
|
||||
class="form-control @error('slug') is-invalid @enderror"
|
||||
placeholder="{{__('Slug')}}"
|
||||
value="{{old('slug',$item->slug??null)}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="price">
|
||||
{{__('Base price')}}
|
||||
</label>
|
||||
<div class="col-lg-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="price">
|
||||
{{__('Base price')}}
|
||||
</label>
|
||||
|
||||
<currency-input xname="price" xid="price" @error('price')
|
||||
:err="true" @enderror xtitle="{{__('Base price')}}" :xvalue="{{old('price',$item->price??null)}}"></currency-input>
|
||||
</div>
|
||||
<currency-input xname="price" xid="price" @error('price')
|
||||
:err="true" @enderror xtitle="{{__('Base price')}}"
|
||||
:xvalue="{{old('price',$item->price??null)}}"></currency-input>
|
||||
</div>
|
||||
<div class="col-lg-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="buy_price">
|
||||
{{__('Purchase price')}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-lg-6 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="buy_price">
|
||||
{{__('Purchase price')}}
|
||||
</label>
|
||||
|
||||
<currency-input xname="buy_price" xid="buy_price" @error('buy_price')
|
||||
:err="true" @enderror :xvalue="{{old('buy_price',$item->buy_price??0)}}"></currency-input>
|
||||
</div>
|
||||
<currency-input xname="buy_price" xid="buy_price" @error('buy_price')
|
||||
:err="true" @enderror :xvalue="{{old('buy_price',$item->buy_price??0)}}"></currency-input>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="categoryId">
|
||||
{{__('Main product category')}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="categoryId">
|
||||
{{__('Main product category')}}
|
||||
</label>
|
||||
|
||||
{{-- data-url="{{route('props.list','')}}/"--}}
|
||||
<searchable-select
|
||||
vuex-dispatch="updateCategory"
|
||||
@error('category_id') :err="true" @enderror
|
||||
:items='@json($cats)'
|
||||
title-field="name"
|
||||
value-field="id"
|
||||
xlang="{{config('app.locale')}}"
|
||||
xid="categoryId"
|
||||
xname="category_id"
|
||||
@error('category_id') :err="true" @enderror
|
||||
xvalue='{{old('category_id',$item->category_id??null)}}'
|
||||
:close-on-Select="true"></searchable-select>
|
||||
</div>
|
||||
{{-- data-url="{{route('props.list','')}}/"--}}
|
||||
<searchable-select
|
||||
vuex-dispatch="updateCategory"
|
||||
@error('category_id') :err="true" @enderror
|
||||
:items='@json($cats)'
|
||||
title-field="name"
|
||||
value-field="id"
|
||||
xlang="{{config('app.locale')}}"
|
||||
xid="categoryId"
|
||||
xname="category_id"
|
||||
@error('category_id') :err="true" @enderror
|
||||
xvalue='{{old('category_id',$item->category_id??null)}}'
|
||||
:close-on-Select="true"></searchable-select>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="price">
|
||||
{{__('SKU')}}
|
||||
</label>
|
||||
<input name="sku" type="text"
|
||||
id="sku"
|
||||
class="form-control @error('sku') is-invalid @enderror"
|
||||
placeholder="{{__('SKU')}}"
|
||||
value="{{old('sku',$item->sku??null)}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="price">
|
||||
{{__('SKU')}}
|
||||
</label>
|
||||
<input name="sku" type="text"
|
||||
id="sku"
|
||||
class="form-control @error('sku') is-invalid @enderror"
|
||||
placeholder="{{__('SKU')}}"
|
||||
value="{{old('sku',$item->sku??null)}}"/>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="status">
|
||||
{{__('Status')}}
|
||||
</label>
|
||||
<select name="status" id="status"
|
||||
class="form-control @error('status') is-invalid @enderror">
|
||||
<option value="1"
|
||||
@if (old('status',$item->status??null) == '1' ) selected @endif >{{__("Published")}} </option>
|
||||
<option value="0"
|
||||
@if (old('status',$item->status??null) == '0' ) selected @endif >{{__("Draft")}} </option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="status">
|
||||
{{__('Status')}}
|
||||
</label>
|
||||
<select name="status" id="status"
|
||||
class="form-control @error('status') is-invalid @enderror">
|
||||
<option value="1"
|
||||
@if (old('status',$item->status??null) == '1' ) selected @endif >{{__("Published")}} </option>
|
||||
<option value="0"
|
||||
@if (old('status',$item->status??null) == '0' ) selected @endif >{{__("Draft")}} </option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-12 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="excerpt">
|
||||
{{__('Excerpt')}}
|
||||
</label>
|
||||
<textarea name="excerpt"
|
||||
class="form-control @error('excerpt') is-invalid @enderror"
|
||||
placeholder="{{__('Excerpt')}}"
|
||||
id="excerpt"
|
||||
rows="4">{{old('excerpt',$item->excerpt??null)}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="excerpt">
|
||||
{{__('Excerpt')}}
|
||||
</label>
|
||||
<textarea name="excerpt"
|
||||
class="form-control @error('excerpt') is-invalid @enderror"
|
||||
placeholder="{{__('Excerpt')}}"
|
||||
id="excerpt"
|
||||
rows="4">{{old('excerpt',$item->excerpt??null)}}</textarea>
|
||||
</div>
|
||||
<div class="col-md-12 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="description">
|
||||
{{__('Description Text')}}
|
||||
</label>
|
||||
<textarea name="desc" class="form-control ckeditorx @error('description') is-invalid @enderror"
|
||||
placeholder="{{__('Description Text')}}"
|
||||
id="description"
|
||||
rows="8">{{old('description',$item->description??null)}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 mt-3">
|
||||
<div class="form-group">
|
||||
<label for="description">
|
||||
{{__('Description Text')}}
|
||||
</label>
|
||||
<textarea name="desc" class="form-control ckeditorx @error('description') is-invalid @enderror"
|
||||
placeholder="{{__('Description Text')}}"
|
||||
id="description"
|
||||
rows="8">{{old('description',$item->description??null)}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -0,0 +1,28 @@
|
||||
<h4>
|
||||
{{__("Attachments")}}
|
||||
<a href="{{route('admin.attachment.create')}}?" class="btn btn-light float-end mb-2">
|
||||
<i class="ri-add-line"></i>
|
||||
<i class="ri-attachment-line"></i>
|
||||
</a>
|
||||
</h4>
|
||||
<div class="clearfix"></div>
|
||||
<ul class="list-group">
|
||||
@foreach($attachs as $attach)
|
||||
|
||||
<li class="list-group-item">
|
||||
<a href="{{route('admin.attachment.deattach',$attach->slug)}}" class="btn btn-danger float-end btn-sm" data-bs-toggle="tooltip" data-bs-placement="auto" data-bs-custom-class="custom-tooltip"
|
||||
data-bs-title="{{__("Deattach")}}">
|
||||
<i class="ri-close-line"></i>
|
||||
</a>
|
||||
<div class="p-2">
|
||||
|
||||
<a href="{{$attach->url()}}">
|
||||
{{$attach->file}}
|
||||
</a>
|
||||
[ {{formatFileSize($attach->size)}} ]
|
||||
[ {{$attach->ext}} ]
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
Loading…
Reference in New Issue