mirror of https://github.com/4xmen/xshop.git
added sort to menu items
parent
f1dec8db9f
commit
8188820ac3
@ -0,0 +1,26 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div id="sort-control">
|
||||||
|
<ol class="ol-sortable">
|
||||||
|
@foreach($item->items as $i)
|
||||||
|
<li data-id="{{$i->id}}" class="p-2">
|
||||||
|
<i class="ri-drag-move-2-line"></i>
|
||||||
|
{{$i->title}}
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<input type="hidden" id="sort-data" >
|
||||||
|
<button
|
||||||
|
data-link="{{getRoute('sort-save')}}"
|
||||||
|
id="save-sort"
|
||||||
|
class="action-btn circle-btn"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-custom-class="custom-tooltip"
|
||||||
|
data-bs-title="{{__("Save")}}"
|
||||||
|
>
|
||||||
|
<i class="ri-save-2-line"></i>
|
||||||
|
</button>
|
||||||
|
@endsection
|
Loading…
Reference in New Issue