Commit 9ce4db6d by Aan Choesni Herlingga

pisah menu order dan action

parent a97be435
......@@ -110,9 +110,9 @@
<table class="table table-hover">
<thead>
<tr>
<th width="53%" style="text-align: center;">Nama</th>
{{-- <th width="10%" style="text-align: center;">Level</th> --}}
<th align="center" width="20%" style="text-align: center;">Aksi</th>
<th style="text-align: center;">Name</th>
<th width="10%" style="text-align: center;">Order</th>
<th align="center" width="15%" style="text-align: center;">Actions</th>
</tr>
</thead>
@foreach ($arr as $key => $value)
......@@ -144,7 +144,8 @@
@endif
@endif
@endif
</td>
<td style="text-align:center; vertical-align: middle;">
<button class="btn btn-danger btn-xs" id="btn_delete" data-file="{{$value['id']}}"><i class="fa fa-trash-o"></i></button>
{{ Form::open(['url'=>route('menu.destroy', ['data'=>Crypt::encrypt($value['id'])]), 'method'=>'delete', 'id' => $value['id'], 'style' => 'display: none;']) }}
{{ csrf_field() }}
......@@ -157,7 +158,6 @@
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{!! url((string)$val['url']) !!}">{!! $val['name'] !!}</a>
</td>
{{-- <td style="text-align: center;">{!! $val['level'] !!}</td> --}}
<td style="text-align:center; vertical-align: middle;">
@if(count($value['r_child']) != 1)
@if($val['urutan'] == 1)
......@@ -182,7 +182,8 @@
@endif
@endif
@endif
</td>
<td style="text-align:center; vertical-align: middle;">
<button class="btn btn-danger btn-xs" id="btn_delete" data-file="{{$val['id']}}"><i class="fa fa-trash-o"></i></button>
{{ Form::open(['url'=>route('menu.destroy', ['data'=>Crypt::encrypt($val['id'])]), 'method'=>'delete', 'id' => $val['id'], 'style' => 'display: none;']) }}
{{ csrf_field() }}
......@@ -195,7 +196,6 @@
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{!! url((string)$val2['url']) !!}">{!! $val2['name'] !!}</a>
</td>
{{-- <td style="text-align: center;">{!! $val2['level'] !!}</td> --}}
<td style="text-align:center; vertical-align: middle;">
@if(count($val['r_child']) != 1)
@if($val2['urutan'] == 1)
......@@ -220,7 +220,8 @@
@endif
@endif
@endif
</td>
<td style="text-align:center; vertical-align: middle;">
<button class="btn btn-danger btn-xs" id="btn_delete" data-file="{{$val2['id']}}"><i class="fa fa-trash-o"></i></button>
{{ Form::open(['url'=>route('menu.destroy', ['data'=>Crypt::encrypt($val2['id'])]), 'method'=>'delete', 'id' => $val2['id'], 'style' => 'display: none;']) }}
{{ csrf_field() }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment