54 lines
No EOL
2.2 KiB
PHP
Executable file
54 lines
No EOL
2.2 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<h4 class="font-weight-bold py-3 mb-1">
|
|
Airline
|
|
</h4>
|
|
<div class="card">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-default table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;"> </th>
|
|
<th>{{__('#')}}</th>
|
|
<th>{{__('Name')}}</th>
|
|
<th>{{__('E-Mail(s)')}}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($airline as $value)
|
|
<tr>
|
|
<td data-sort="{{ $value->id }}">
|
|
<a href="{{ route('admin_settings_airline_detail', [$value->id]) }}" class="btn icon-btn btn-sm btn-primary">
|
|
<span class="fa fa-edit"></span>
|
|
</a>
|
|
</td>
|
|
<td data-sort="{{ $value->name }}">{{ $value->name }}</td>
|
|
<td data-sort="{{ $value->name_full }}">{{ $value->name_full }}</td>
|
|
<td>{!! \App\Services\Util::_implodeLines($value->contact_emails, "<br>") !!}</td>
|
|
<td><a class="text-danger" href="{{ route('admin_settings_airline_delete', [$value->id]) }}" onclick="return confirm('{{__('Wirklich löschen?')}}');"><i class="fa fa-trash-alt"></i></a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="mt-4 col">
|
|
<a href="{{ route('admin_settings_airline_detail', ['new']) }}" class="btn btn-sm btn-primary">Neues Airline anlegen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
|
|
$('.datatables-default').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 50,
|
|
"order": [[ 1, "asc" ]],
|
|
"language": {
|
|
"url": "/js/German.json"
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |