@extends('backend.settings.setting-layout') @section('title') {{ __('menu_settings') }} @endsection @section('breadcrumbs')

{{ __('menu_settings') }}

@endsection @section('website-settings')
{{ __('for_internal_links_use_your_link_as_the_starting_point') }}.
{{ __('for_external_links_begin_with_httpswwwyour_linkcom') }}.
@forelse ($menus as $menu) @empty @endforelse
{{ __('title') }} {{ __('url') }} {{ __('menu_show_frontend') }} {{ __('action') }}
{{ $menu->title }}
@foreach ($menu->translations as $translation) @if (app()->getLocale() == $translation->locale) @else {{ getLanguageByCodeInLookUp($translation->locale,$app_languages) }} : {{ $translation->title }} @endif @endforeach
{{ ucfirst(Str::replace('_', ' ', $menu->url)) }} @if (userCan('menu-setting.update'))
@csrf
@endif
@if (userCan('menu-setting.update'))
@endif @if (userCan('menu-setting.update')) @endif @if (userCan('menu-setting.delete')) @if (!$menu->default)
@method('DELETE') @csrf
@endif @endif
{{ $menus->links() }}
@if (!empty($menu_setting))

{{ __('edit') }}

{{ __('back') }}
@if (userCan('menu-setting.update'))
@method('PUT') @csrf @foreach ($app_languages as $key => $language) @php $label = __('title') . ' ' . getLanguageByCodeInLookUp($language->code,$app_languages); $title = "title_{$language->code}"; $data = $menu_setting->translations->where('locale', $language->code)->first(); $value = $data ? $data->title : ''; @endphp
@if ($errors->has($title)) {{ $errors->first($title) }} @endif
@endforeach
default ? 'disabled' : '' }} type="text" name="url" placeholder="{{ __('enter') }} {{ __('url') }}" value="{{ $menu_setting->url }}" class="form-control @error('url') is-invalid @enderror"> @error('url') {{ $message }} @enderror
@php $value = $menu_setting->for; $arrayValue = json_decode($value, true); @endphp
@error('eligibility') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
@else

{{ __('dont_have_permission') }}

@endif
@endif @if (empty($menu_setting)) @php $arrayValue = ['']; @endphp

{{ __('create') }}

@if (userCan('menu-setting.create'))
@csrf @foreach ($app_languages as $key => $language) @php $label = __('title') . ' ' . getLanguageByCodeInLookUp($language->code,$app_languages); $title = "title_{$language->code}"; @endphp
@if ($errors->has($title)) {{ $errors->first($title) }} @endif
@endforeach
@error('url') {{ $message }} @enderror
@error('eligibility') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
@else

{{ __('dont_have_permission') }}

@endif
@endif
@endsection @section('script') @endsection @section('style') @endsection