80 lines
3.5 KiB
PHP
80 lines
3.5 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{{__('Länder')}}
|
|
</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>{{__('DE')}}</th>
|
|
<th>{{__('Code')}}</th>
|
|
<th>{{__('Phone')}}</th>
|
|
<th>{{__('tables.status')}}</th>
|
|
<th>{{__('Reverse Charge')}}</th>
|
|
<th>{{__('Länderwechsel')}}</th>
|
|
<th>{{__('Drittland') }}</th>
|
|
<th>{{__('e. Preis')}}</th>
|
|
<th>{{__('e. Währung')}}</th>
|
|
<th>{{__('Kalkulation')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($values as $value)
|
|
<tr>
|
|
<td data-sort="{{ $value->id }}">
|
|
<a href="{{route('admin_country_edit', [$value->id])}}" class="btn icon-btn btn-sm btn-primary">
|
|
<span class="fa fa-edit"></span>
|
|
</a>
|
|
</td>
|
|
<td>{{ $value->de }}</td>
|
|
<td>{{ $value->code }}</td>
|
|
<td>{{ $value->phone }}</td>
|
|
<td data-sort="{{ $value->active }}">{!! get_active_badge($value->active) !!}</td>
|
|
<td data-sort="{{ $value->eu_country }}">{!! get_active_badge($value->eu_country) !!}</td>
|
|
<td data-sort="{{ $value->switch }}">{!! get_active_badge($value->switch) !!}</td>
|
|
<td data-sort="{{ $value->supply_country }}">{!! get_active_badge($value->supply_country) !!}</td>
|
|
<td data-sort="{{ $value->own_eur }}">{!! get_active_badge($value->own_eur) !!}</td>
|
|
<td data-sort="{{ $value->currency }}">{!! get_active_badge($value->currency) !!} {{$value->currency_unit}}</td>
|
|
<td data-sort="{{ $value->currency_calc }}">
|
|
@if($value->currency)
|
|
@if($value->currency_calc)
|
|
<span class="badge badge-secondary"><i class="fa fa-cogs"></i> {{$value->currency_faktor}} </span>
|
|
@else
|
|
<span class="badge badge-info"><i class="fa fa-edit"></i> {{$value->currency_faktor}} </span>
|
|
@endif
|
|
@else - @endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="mt-4 ml-4">
|
|
{{--
|
|
<a href="{{route('admin_product_category_edit', ['new'])}}" class="btn btn-sm btn-primary">
|
|
{{__('Neue Kategorie erstellen')}}
|
|
</a>
|
|
--}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$('.datatables-style').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 50,
|
|
"order": [[ 0, "asc" ]],
|
|
|
|
"language": {
|
|
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|
|
|