17 Nov - Static Sites to laravel

This commit is contained in:
Kevin Adametz 2018-11-17 02:01:22 +01:00
parent 610aa1e202
commit 5ff57a21a7
3661 changed files with 569001 additions and 771 deletions

View file

@ -1,12 +1,12 @@
@if(is_array($value))
<tr>
<td @if(is_array($value))colspan="3"@endif>
<td @if(is_array($value))colspan="2"@endif>
<h4>{{ $key }}</h4>
</td>
</tr>
@foreach($value as $subKey => $subValue)
@include('components.translation_row', [
@include('translation.translation_row', [
'language' => $language,
'key' => $subKey,
'value' => $subValue,
@ -19,12 +19,12 @@
@endforeach
@else
<?php
$bool = Lang::has($prefix.'.'.$key, $language, false);
<?php
$bool = Lang::has($prefix.'.'.$key, $language, false);
?>
<tr <?php if($show == 'empty' && $bool) echo 'style="display:none"'; ?>>
<td>{{ $key }}</td>
<td>{!! nl2br(htmlentities($value)) !!}</td>
<!--<td>{!! nl2br(htmlentities($value)) !!}</td> -->
<td>
<?php
$old = $key;
@ -37,8 +37,8 @@
?>
<textarea name="{{ $name }}"
class="form-control @if(!$bool) has-error @endif"
rows="4">{{ old(
class="form-control @if(!$bool) has-error @endif"
rows="4">{{ old(
"{$old}",
$bool ? Lang::trans($prefix.'.'.$key, [], $language) : null
) }}</textarea>