mirror of https://github.com/4xmen/xshop.git
parent
56acb26137
commit
84ad1c1584
@ -1,118 +1,119 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 mt-3">
|
<div class="col-md-6 mt-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name">
|
<label for="name">
|
||||||
{{__('Name')}}
|
{{__('Name')}}
|
||||||
</label>
|
</label>
|
||||||
<input name="name" type="text"
|
<input name="name" type="text"
|
||||||
id="name"
|
id="name"
|
||||||
class="form-control @error('name') is-invalid @enderror"
|
class="form-control @error('name') is-invalid @enderror"
|
||||||
placeholder="{{__('Name')}}"
|
placeholder="{{__('Name')}}"
|
||||||
value="{{old('name',$item->name??null)}}"/>
|
value="{{old('name',$item->name??null)}}"/>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-md-6 mt-3">
|
||||||
<label for="name">
|
<div class="form-group">
|
||||||
{{__('Slug')}}
|
<label for="name">
|
||||||
</label>
|
{{__('Slug')}}
|
||||||
<input name="slug" type="text"
|
</label>
|
||||||
id="slug"
|
<input name="slug" type="text"
|
||||||
class="form-control @error('slug') is-invalid @enderror"
|
id="slug"
|
||||||
placeholder="{{__('Slug')}}"
|
class="form-control @error('slug') is-invalid @enderror"
|
||||||
value="{{old('slug',$item->slug??null)}}"/>
|
placeholder="{{__('Slug')}}"
|
||||||
</div>
|
value="{{old('slug',$item->slug??null)}}"/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-lg-6 mt-3">
|
<div class="col-lg-6 mt-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="price">
|
<label for="price">
|
||||||
{{__('Base price')}}
|
{{__('Base price')}}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<currency-input xname="price" xid="price" @error('price')
|
<currency-input xname="price" xid="price" @error('price')
|
||||||
:err="true" @enderror xtitle="{{__('Base price')}}" :xvalue="{{old('price',$item->price??null)}}"></currency-input>
|
:err="true" @enderror xtitle="{{__('Base price')}}"
|
||||||
</div>
|
:xvalue="{{old('price',$item->price??null)}}"></currency-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-lg-6 mt-3">
|
||||||
<label for="buy_price">
|
<div class="form-group">
|
||||||
{{__('Purchase price')}}
|
<label for="buy_price">
|
||||||
</label>
|
{{__('Purchase price')}}
|
||||||
|
</label>
|
||||||
|
|
||||||
<currency-input xname="buy_price" xid="buy_price" @error('buy_price')
|
<currency-input xname="buy_price" xid="buy_price" @error('buy_price')
|
||||||
:err="true" @enderror :xvalue="{{old('buy_price',$item->buy_price??0)}}"></currency-input>
|
:err="true" @enderror :xvalue="{{old('buy_price',$item->buy_price??0)}}"></currency-input>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-lg-4 mt-3">
|
||||||
<label for="categoryId">
|
<div class="form-group">
|
||||||
{{__('Main product category')}}
|
<label for="categoryId">
|
||||||
</label>
|
{{__('Main product category')}}
|
||||||
|
</label>
|
||||||
|
|
||||||
{{-- data-url="{{route('props.list','')}}/"--}}
|
{{-- data-url="{{route('props.list','')}}/"--}}
|
||||||
<searchable-select
|
<searchable-select
|
||||||
vuex-dispatch="updateCategory"
|
vuex-dispatch="updateCategory"
|
||||||
@error('category_id') :err="true" @enderror
|
@error('category_id') :err="true" @enderror
|
||||||
:items='@json($cats)'
|
:items='@json($cats)'
|
||||||
title-field="name"
|
title-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
xlang="{{config('app.locale')}}"
|
xlang="{{config('app.locale')}}"
|
||||||
xid="categoryId"
|
xid="categoryId"
|
||||||
xname="category_id"
|
xname="category_id"
|
||||||
@error('category_id') :err="true" @enderror
|
@error('category_id') :err="true" @enderror
|
||||||
xvalue='{{old('category_id',$item->category_id??null)}}'
|
xvalue='{{old('category_id',$item->category_id??null)}}'
|
||||||
:close-on-Select="true"></searchable-select>
|
:close-on-Select="true"></searchable-select>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-lg-4 mt-3">
|
||||||
<label for="price">
|
<div class="form-group">
|
||||||
{{__('SKU')}}
|
<label for="price">
|
||||||
</label>
|
{{__('SKU')}}
|
||||||
<input name="sku" type="text"
|
</label>
|
||||||
id="sku"
|
<input name="sku" type="text"
|
||||||
class="form-control @error('sku') is-invalid @enderror"
|
id="sku"
|
||||||
placeholder="{{__('SKU')}}"
|
class="form-control @error('sku') is-invalid @enderror"
|
||||||
value="{{old('sku',$item->sku??null)}}"/>
|
placeholder="{{__('SKU')}}"
|
||||||
</div>
|
value="{{old('sku',$item->sku??null)}}"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-lg-4 mt-3">
|
||||||
<label for="status">
|
<div class="form-group">
|
||||||
{{__('Status')}}
|
<label for="status">
|
||||||
</label>
|
{{__('Status')}}
|
||||||
<select name="status" id="status"
|
</label>
|
||||||
class="form-control @error('status') is-invalid @enderror">
|
<select name="status" id="status"
|
||||||
<option value="1"
|
class="form-control @error('status') is-invalid @enderror">
|
||||||
@if (old('status',$item->status??null) == '1' ) selected @endif >{{__("Published")}} </option>
|
<option value="1"
|
||||||
<option value="0"
|
@if (old('status',$item->status??null) == '1' ) selected @endif >{{__("Published")}} </option>
|
||||||
@if (old('status',$item->status??null) == '0' ) selected @endif >{{__("Draft")}} </option>
|
<option value="0"
|
||||||
</select>
|
@if (old('status',$item->status??null) == '0' ) selected @endif >{{__("Draft")}} </option>
|
||||||
</div>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-md-12 mt-3">
|
||||||
<label for="excerpt">
|
<div class="form-group">
|
||||||
{{__('Excerpt')}}
|
<label for="excerpt">
|
||||||
</label>
|
{{__('Excerpt')}}
|
||||||
<textarea name="excerpt"
|
</label>
|
||||||
class="form-control @error('excerpt') is-invalid @enderror"
|
<textarea name="excerpt"
|
||||||
placeholder="{{__('Excerpt')}}"
|
class="form-control @error('excerpt') is-invalid @enderror"
|
||||||
id="excerpt"
|
placeholder="{{__('Excerpt')}}"
|
||||||
rows="4">{{old('excerpt',$item->excerpt??null)}}</textarea>
|
id="excerpt"
|
||||||
</div>
|
rows="4">{{old('excerpt',$item->excerpt??null)}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 mt-3">
|
</div>
|
||||||
<div class="form-group">
|
<div class="col-md-12 mt-3">
|
||||||
<label for="description">
|
<div class="form-group">
|
||||||
{{__('Description Text')}}
|
<label for="description">
|
||||||
</label>
|
{{__('Description Text')}}
|
||||||
<textarea name="desc" class="form-control ckeditorx @error('description') is-invalid @enderror"
|
</label>
|
||||||
placeholder="{{__('Description Text')}}"
|
<textarea name="desc" class="form-control ckeditorx @error('description') is-invalid @enderror"
|
||||||
id="description"
|
placeholder="{{__('Description Text')}}"
|
||||||
rows="8">{{old('description',$item->description??null)}}</textarea>
|
id="description"
|
||||||
</div>
|
rows="8">{{old('description',$item->description??null)}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</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