65 lines
No EOL
2.2 KiB
PHP
65 lines
No EOL
2.2 KiB
PHP
@extends('translation::layout')
|
|
|
|
@section('body')
|
|
@if(count($languages))
|
|
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{{__('Sprache')}}
|
|
</h5>
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
|
|
<th>{{ __('translation::translation.language_name') }}</th>
|
|
<th>{{ __('translation::translation.locale') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach($languages as $language => $name)
|
|
<tr>
|
|
<td>
|
|
<a href="{{ route('languages.translations.index', $language) }}?group=single" class="btn icon-btn btn-sm btn-primary">
|
|
<span class="fa fa-edit"></span>
|
|
</a> {{ __('translation::translation.translations') }} {{ __('edit') }}
|
|
</td>
|
|
<td>
|
|
{{ $name }}
|
|
</td>
|
|
<td>
|
|
<a href="{{ route('languages.translations.index', $language) }}?group=single">
|
|
{{ $language }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<div class="mt-4 ml-4">
|
|
<a href="{{ route('languages.create') }}" class="btn btn-sm btn-primary">
|
|
{{ __('translation::translation.add') }} {{ __('translation::translation.language') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$('.datatables-style').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 50,
|
|
"language": {
|
|
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endif
|
|
|
|
@endsection |