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.8 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")}}
<a href="{{route('admin.lang.create')}}" class="btn btn-success btn-sm float-end"><i
class="fa fa-plus"></i></a>
</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="fa fa-edit"></i> &nbsp;
{{__("Edit")}}
</a>
<a href="{{route('admin.lang.delete',$n->id)}}"
class="btn btn-danger delete-confirm btn-sm">
<i class="fa fa-times"></i> &nbsp;
{{__("Delete")}}
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@include('starter-kit::component.bulk',['actions' => []])
</form>
<div class="text-center pt-3">
{{$langs->links()}}
</div>
</div>
@endsection