ldc-com-app-bo/resources/views/setting/index.blade.php
2022-05-10 13:42:11 +02:00

37 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">{{ __('Clé') }}</th>
<th scope="col">{{ __('Type') }}</th>
<th scope="col">{{ __('Valeur') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($settings as $setting)
<tr>
<td>{{$setting->key}}</td>
<td>{{ $setting->type->label }}</td>
@if ($setting->type->value != SettingTypesEnum::picture()->value)
<td>{{$setting->value}}</td>
@else
<td>
<a href="{{ asset($setting->value) }}" target="_blank">Ouvrir</a>
</td>
@endif
<td>
<a href="{{ route('setting.edit', ['setting' => $setting]) }}">{{ __('Éditer') }}</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection