chore: synchronize project dependencies and update vendor directory files
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
@php
|
||||
$order_number = 0;
|
||||
@endphp
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-primary btn-custom right small" href="{{route($route_name_update)}}?id=0">Thêm mới</a>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="container">
|
||||
<table class="datatable table table-striped table-bordered" id="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">STT</th>
|
||||
<th>TÊN GIẢI THƯỞNG</th>
|
||||
<th class="text-center">HÌNH ẢNH</th>
|
||||
<th class="text-center">SỐ NGƯỜI NHẬN GIẢI</th>
|
||||
<th class="text-center">Trạng thái</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($data as $item)
|
||||
<tr>
|
||||
<td class="text-center">{{++$order_number ?? ''}}</td>
|
||||
<td>
|
||||
<a class="custom-link" href="{{route($route_name_update)}}?id={{$item->id ?? ''}}">
|
||||
Giải {{$item->prize_order ?? ''}} - {{$item->prize_name ?? ''}}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if ($item->prize_image != '')
|
||||
<img src="{{asset('public/images/' . $item->prize_image)}}" />
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{ $item->prize_count ?? 0 }} / {{ $item->prize_number ?? 0 }}
|
||||
@if ($item->prize_count >= $item->prize_number)
|
||||
<span class="text-danger"> (Số lượng hết)</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>{{$item->prize_status == 1 ? 'Hiển thị' : 'Ẩn'}}</p>
|
||||
<a href="{{route('admin/prize/delete', $item->id)}}" class="custom-danger-link"
|
||||
onclick="return confirm('Bạn có chắc muốn xóa ?')">Xóa</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user