58 lines
2.4 KiB
PHP
58 lines
2.4 KiB
PHP
@extends("admin.main")
|
|
@section("content")
|
|
<div class="card card-primary card-outline">
|
|
<div class="card-header">
|
|
@include("admin.block.import")
|
|
</div>
|
|
<div class="card-body">
|
|
<table class="table table-invoice table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>.Ext</th>
|
|
<th>Price</th>
|
|
<th>Type</th>
|
|
<th style="width:40px"></th>
|
|
<th style="width: 40px"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if($domain->count())
|
|
@foreach($domain->all() as $item)
|
|
<tr>
|
|
<td class="text-center">
|
|
{{ $item->name }}
|
|
</td>
|
|
<td class="text-center">
|
|
{{ number_format($item->price,0,',','.') }} vnđ
|
|
</td>
|
|
<td class="text-center">
|
|
{{ $item->Type->name }}
|
|
</td>
|
|
<td>
|
|
<a class="btn btn-warning btn-sm" href="{{ route('product.edit',['product_id' => $item->id,'type' => $item->type_id]) }}">
|
|
<i class="fas fa-user-edit"></i>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<form method="post" class="d-inline"
|
|
action="{{ route('product.destroy',['type' => $item->Type->id,'product_id' => $item->id]) }}">
|
|
@csrf
|
|
@method('delete')
|
|
<button type="submit" data-toggle="tooltip" data-placement="top" title=""
|
|
class="btn btn-sm btn-danger" data-original-title="Xoá">
|
|
<i class="fas fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="card-footer">
|
|
{{ $domain->withQueryString()->links() }}
|
|
</div>
|
|
</div>
|
|
@endsection
|