@php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; @endphp @extends('user.layout') @section('content')
{{ __('Add Blog') }}
{{ __('Back') }}
    @csrf
    ...

    {{__('Upload 370 X 280 image for best quality')}}

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

    @foreach ($userLangs as $language)
    {{ $language->name . __(' Language') }} {{ $language->is_default == 1 ? '(Default)' : '' }}
    @php $categories = DB::table('user_blog_categories') ->where('language_id', $language->id)->where('user_id', Auth::guard('web')->user()->id) ->where('status', 1)->orderByDesc('id') ->get(); @endphp
    @php $currLang = $language; @endphp @foreach ($languages as $lang) @continue($lang->id == $currLang->id)
    @endforeach
    @endforeach
    @endsection @section('scripts') @endsection