@php $countries = \App\Models\Country::all(); @endphp @php $categories_proved = \App\Models\MainCategory::where('show_in_website', 1)->paginate(4); @endphp {{ TranslationHelper::translate('home', 'site') }} @foreach ($categories_proved as $category) {{ $category->name }} @php $subcategories = \App\Models\Brand::where('main_category_id', $category->id)->get(); @endphp @if($subcategories->count() > 0) @foreach ($subcategories as $subCategory) {{ $subCategory->name }} @endforeach @endif @endforeach @php $categories = \App\Models\MainCategory::where('show_in_website', 0)->get(); @endphp {{ TranslationHelper::translate('others', 'site') }} @foreach ($categories as $category) {{ $category->name }} @endforeach {{ TranslationHelper::translate('Select Language', 'site') }} @foreach (config('language') as $key => $langs) {{ $langs }} @endforeach {{ TranslationHelper::translate('Select Country', 'site') }} @foreach ($countries as $country) id ? 'selected' : '' }}> {{ $country->name }} @endforeach @guest('end-user') {{ TranslationHelper::translate('login', 'site') }} {{ TranslationHelper::translate('register', 'site') }} @endguest @auth('end-user') {{ TranslationHelper::translate('My profile', 'site') }} {{ TranslationHelper::translate('My Ads', 'site') }} @csrf {{ TranslationHelper::translate('log_out', 'site') }} Notifications: {{ auth('end-user')->user()->unreadNotifications->count() }} @if (auth('end-user')->check()) @if (auth('end-user')->user()->unreadNotifications->count() == 0) {{ TranslationHelper::translate('No new notifications', 'site') }} @else @foreach (auth('end-user')->user()->unreadNotifications as $notification) @if(app()->getLocale() == 'ar') {{ TranslationHelper::translate($notification->data['title'], 'site') }} @else {{ $notification->data['title'] }} @endif {{ $notification->created_at->diffForHumans() }} @endforeach @endif @endif @endauth {{ TranslationHelper::translate('Add','site') }} @auth('end-user') {{ TranslationHelper::translate('my_profile', 'site') }} {{ TranslationHelper::translate('my_ads','site') }} @if (auth('end-user')->user()->unreadNotifications->count() == 0) {{ TranslationHelper::translate('No new notifications', 'site') }} @else Unread notifications: {{ auth('end-user')->user()->unreadNotifications->count() }} {{ TranslationHelper::translate('Mark all as read', 'site') }} @foreach (auth('end-user')->user()->unreadNotifications as $notification) @if(app()->getLocale() == 'ar') {{ TranslationHelper::translate($notification->data['title'], 'site') }} @else {{ $notification->data['title'] }} @endif {{ $notification->created_at->diffForHumans() }} @endforeach @endif @endauth {{ TranslationHelper::translate('Add', 'site') }} @guest('end-user') @if(app()->getLocale() == 'ar') @else @endif {{ TranslationHelper::translate('login', 'site') }} @endguest @auth('end-user') {{ TranslationHelper::translate('log_out', 'site') }} @endauth {{ TranslationHelper::translate('Select Language', 'site') }} @foreach (config('language') as $key => $langs) {{ $langs }} @endforeach {{ TranslationHelper::translate('Select Country', 'site') }} @foreach ($countries as $country) id ? 'selected' : '' }}> {{ $country->name }} @endforeach
{{ TranslationHelper::translate('No new notifications', 'site') }}