72 lines
2.8 KiB
PHP
Executable file
72 lines
2.8 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{{__('Inhaltsstoffe')}}
|
|
</h5>
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;"> </th>
|
|
<th>{{__('Pos')}}</th>
|
|
<th>{{__('Name')}}</th>
|
|
<th>{{__('INCI')}}</th>
|
|
<th>{{__('Wirkung') }}</th>
|
|
<th>{{__('tables.status')}}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($values as $value)
|
|
<tr>
|
|
<td>
|
|
<a href="{{route('admin_product_ingredient_edit', [$value->id])}}" class="btn icon-btn btn-sm btn-primary">
|
|
<span class="fa fa-edit"></span>
|
|
</a>
|
|
</td>
|
|
<td>{{ $value->pos }}</td>
|
|
<td>{{ $value->name }}</td>
|
|
<td>{{ $value->inci }}</td>
|
|
<td>{{ $value->effect }}</td>
|
|
<td data-sort="{{ $value->active }}">@if($value->active) <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>@else<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>@endif</td>
|
|
<td><a class="text-danger" href="{{ route('admin_product_ingredient_delete', [$value->id]) }}" onclick="return confirm('{{__('Really delete entry?')}}');"><i class="fa fa-trash-alt"></i></a></td>
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="mt-4 ml-4">
|
|
<a href="{{route('admin_product_ingredient_edit', ['new'])}}" class="btn btn-sm btn-primary">
|
|
{{__('Neuen Inhaltsstoff erstellen')}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
|
|
|
|
$('.datatables-style').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"order": [[ 1, "asc" ]],
|
|
"aoColumns": [
|
|
{ "sWidth": "8%" },
|
|
{ "sWidth": "8%" },
|
|
{ "sWidth": "19%" },
|
|
{ "sWidth": "19%" },
|
|
{ "sWidth": "30%" },
|
|
{ "sWidth": "10%" },
|
|
{ "sWidth": "8%" },
|
|
],
|
|
"language": {
|
|
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|