You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/admin/props/propIndex.blade.php

81 lines
3.1 KiB
PHTML

2 years ago
@extends('admin.adminlayout')
@section('content')
<div class="container">
<h5 class="text-center">
{{__("Properties list")}}
2 years ago
</h5>
<div class="table-responsive">
<table class="table table-striped table-bordered text-center">
2 years ago
<thead>
<tr>
<th>#</th>
<th>{{__("Name")}}</th>
<th>{{__("Label")}}</th>
<th>{{__("Type")}}</th>
<th>{{__("Product category")}}</th>
<th>-</th>
</tr>
</thead>
<tbody>
@foreach($props as $k=>$p)
<tr>
<td scope="row">{{$p->id}}</td>
<td>
{{$p->name}}
</td>
<td>
{{$p->label}}
</td>
<td>
{{$p->type}}
</td>
<td class="no-dec">
2 years ago
@if(isset($p->category))
@foreach($p->category as $c)
<a href="{{route('admin.props.sort',$c->id)}}">
{{$c->name}}
<i class="fa fa-sort"></i>
</a>
@endforeach
@endif
</td>
<td>
<div class="btn-group"
role="group">
<a title="Edit"
class="btn btn-primary ad-accept-btn"
2 years ago
href="{{route('admin.props.edit',$p->id)}}">
<i class="ri-edit-2-line"></i>
2 years ago
</a>
&nbsp;
<a title="Dlete"
class="btn btn-danger cdelete"
href="{{route('admin.props.delete',$p->id)}}">
<i class="ri-close-line"></i>
2 years ago
</a>
@if(config('app.xlang'))
<a href="{{route('admin.lang.model',[$p->id,\App\Models\Prop::class])}}"
class="btn btn-outline-dark translat-btn mx-1">
<i class="ri-translate"></i>
</a>
@endif
2 years ago
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="pt-2">
{{$props->links()}}
</div>
</div>
</div>
<a class="btn-add" href="{{route('admin.props.create')}}">
<i class="ri-add-line"></i>
</a>
2 years ago
@endsection