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/transport/transportIndex.blade.php

71 lines
2.4 KiB
PHTML

2 years ago
@extends('admin.adminlayout')
@section('page_title')
{{__("Transports")}}
2 years ago
-
@endsection
@section('content')
<div class="container">
@include('starter-kit::component.err')
<form action="{{route('admin.transport.bulk')}}" method="post" class="bulk-action">
@csrf
<table class="table table-striped table-bordered text-center">
2 years ago
<thead class="thead-dark">
<tr>
<th>
#
2 years ago
</th>
<th>
{{__("Title")}}
</th>
<th>
{{__("Price")}}
</th>
<th>
{{__("Action")}}
</th>
<th>
<input type="checkbox" class="chkall"/>
2 years ago
</th>
</tr>
</thead>
<tbody>
@foreach ($transports as $n)
<tr>
<td>
{{$n->id}}
</td>
<td>
{{__($n->title)}}
</td>
<td>
{{number_format($n->price)}}
</td>
<td>
<a href="{{route('admin.transport.edit',$n->id)}}" class="btn btn-primary">
<i class="ri-edit-2-line"></i>
2 years ago
</a>
<a href="{{route('admin.transport.delete',$n->id)}}"
class="btn btn-danger delete-confirm">
<i class="ri-close-line"></i>
2 years ago
</a>
</td>
<td>
<input type="checkbox" name="id[]" value="{{$n->id}}" class="m-2 chkbox"/>
</td>
2 years ago
</tr>
@endforeach
</tbody>
</table>
@include('starter-kit::component.bulk',['actions' => []])
</form>
<div class="text-center pt-3">
{{$transports->links()}}
</div>
<a class="btn-add" href="{{route('admin.transport.create')}}">
<i class="ri-add-line"></i>
</a>
2 years ago
</div>
@endsection