@extends('user.layout') @php $userLanguages = \App\Models\User\Language::where('user_id', \Illuminate\Support\Facades\Auth::id())->get(); $userDefaultLang = \App\Models\User\Language::where([['user_id', \Illuminate\Support\Facades\Auth::id()], ['is_default', 1]])->first(); @endphp @includeIf('user.partials.rtl-style') @section('content')
{{ __('Update Why Choose Us Section') }}
@if (!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif
@csrf
...

@if ($errors->has('why_choose_us_section_title'))

{{ $errors->first('why_choose_us_section_title') }}

@endif
@if ($errors->has('why_choose_us_section_subtitle'))

{{ $errors->first('why_choose_us_section_subtitle') }}

@endif
@if ($userBs->theme != 'home_nine')
@if ($errors->has('why_choose_us_section_text'))

{{ $errors->first('why_choose_us_section_text') }}

@endif
@if ($errors->has('why_choose_us_section_button_text'))

{{ $errors->first('why_choose_us_section_button_text') }}

@endif
@if ($errors->has('why_choose_us_section_button_url'))

{{ $errors->first('why_choose_us_section_button_url') }}

@endif
@endif @if ($userBs->theme === 'home_three')
...
@if ($errors->has('why_choose_us_section_video_image'))

{{ $errors->first('why_choose_us_section_video_image') }}

@endif
@if ($errors->has('why_choose_us_section_video_url'))

{{ $errors->first('why_choose_us_section_video_url') }}

@endif
@endif
{{ __('Add Why Chose Us Item ') }}
@csrf

{{ __('NB: click on the dropdown icon to select a social link icon.') }}
@if (!is_null($userDefaultLang)) @if (!empty($userLanguages))

@endif @endif

{{ __('The higher the serial number is, the later the social link will be shown.') }}

{{ __('Why Choose Us Items') }}
@if (empty($chooseUsItems))

{{ __('NO LINK ADDED') }}

@else
@foreach ($chooseUsItems as $key => $chooseUsItem) @endforeach
# {{ __('Icon') }} {{ __('Title') }} {{ __('Icon') }} {{ __('Serial No') }} {{ __('Actions') }}
{{ $loop->iteration }} {{ $chooseUsItem->title }} {{ strlen($chooseUsItem->content) > 30 ? mb_substr(strip_tags($chooseUsItem->content), 0, 30, 'UTF-8') . '...' : strip_tags($chooseUsItem->content) }} {{ $chooseUsItem->serial_number }}
@csrf
@endif
@if ($userBs->theme == 'home_nine') @endif @endsection @section('scripts') @endsection