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/langs/langIndex.blade.php

79 lines
2.7 KiB
PHTML

@extends('admin.adminlayout')
@section('page_title')
{{__("Languages")}}
-
@endsection
@section('content')
<div class="container">
@include('starter-kit::component.err')
<form action="{{route('admin.lang.bulk')}}" method="post" class="bulk-action">
@csrf
<table class="table table-striped table-bordered text-center ">
<thead class="thead-dark">
<tr>
<th>
<input type="checkbox" class="chkall"/>
</th>
<th>
{{__("Name")}}
</th>
<th>
{{__("Tag")}}
</th>
<th>
{{__("Direction")}}
</th>
<th>
{{__("Action")}}
</th>
</tr>
</thead>
<tbody>
@foreach ($langs as $n)
<tr>
<td>
<input type="checkbox" name="id[]" value="{{$n->id}}" class="m-2 chkbox"/>
{{$n->id}}
</td>
<td>
<a href="{{route('admin.lang.edit',$n->id)}}">
{{$n->name}}
</a>
</td>
<td>
{{$n->tag}}
</td>
<td>
@if($n->rtl)
{{__("RTL")}}
@else
{{__("LTR")}}
@endif
</td>
<td>
<a href="{{route('admin.lang.edit',$n->id)}}" class="btn btn-primary btn-sm">
<i class="ri-edit-2-line"></i>
</a>
<a href="{{route('admin.lang.delete',$n->id)}}"
class="btn btn-danger delete-confirm btn-sm">
<i class="ri-close-line"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@include('starter-kit::component.bulk',['actions' => []])
</form>
<div class="text-center pt-3">
{{$langs->links()}}
</div>
<a class="btn-add" href="{{route('admin.lang.create')}}">
<i class="ri-add-line"></i>
</a>
</div>
@endsection