@php
$locale = $locale ?? app()->getLocale();
$localeBW = $localeBW ?? 0;
$id = $id ?? 0;
$addURL = $addURL ?? '';
$editURL = $editURL ?? '';
@endphp
|
{{trans('admin::locale.translate.label')}} |
{{trans('admin::locale.opt_char.'.$locale)}} |
|
@foreach(trans('admin::locale.opt') as $k=>$v)
@if($locale != $v['code'])
@php
if(!empty($addURL)) {
$addURL .= (strpos($addURL, '?') !== false) ? '&' : '?';
$addURL .= 'locale=' . $v['code'];
}
if(!empty($editURL)) {
$editURL .= (strpos($editURL, '?') !== false) ? '&' : '?';
$editURL .= 'locale=' . $v['code'];
}
@endphp
{{$v['name']}} |
@if($id > 0)
@if(($localeBW&$k) > 0)
@else
@endif
@else
@endif
|
@endif
@endforeach