@yield('title') @php $setting = App\Models\Setting::with('settinglangfrontend')->first(); $languages = App\Models\Language::where('status', 1)->get(); $currencies = App\Models\MultiCurrency::where('status', 1)->get(); $front_lang = Session::get('front_lang'); $language = App\Models\Language::where('is_default', 'Yes')->first(); if($front_lang == ''){ $front_lang = Session::put('front_lang', $language->lang_code); } $lang_direction = App\Models\Language::where('lang_code', $front_lang)->first(); $currency_code = Session::get('currency_code'); $currency_icon = Session::get('currency_icon'); $currency_rate = Session::get('currency_rate'); $currency_position = Session::get('currency_position'); $default_currency = App\Models\MultiCurrency::where('is_default', 'Yes')->first(); if($currency_code == ''){ $currency_code = Session::put('currency_code', $default_currency->currency_code); } if($currency_icon == ''){ $currency_icon = Session::put('currency_icon', $default_currency->currency_icon); } if($currency_rate == ''){ $currency_rate = Session::put('currency_rate', $default_currency->currency_rate); } if($currency_position == ''){ $currency_position = Session::put('currency_position', $default_currency->currency_position); } @endphp @if ($lang_direction->lang_direction=='right_to_left') @endif
@php $discount = App\Models\ProductDiscount::first(); $today = Carbon\Carbon::now(); $end_time = $discount->end_time; $end_year = date('Y', strtotime($end_time)); $end_month = date('m', strtotime($end_time)); $end_day = date('d', strtotime($end_time)); @endphp

{{ $discount->offer }}% {{ $discount->discountlangfrontend->title }}

  • @csrf
  • @csrf
  • user
    • {{__('user.Overview')}}
    • {{__('user.Portfolio')}}
    • {{__('user.Download File')}}
    • {{__('user.Collection')}}
    • @if (Auth::guard('web')->check())
    • {{__('user.Edit profile')}}
    • {{__('user.Change Password')}}
    • {{__('user.Logout')}}
    • @else
    • {{__('user.Login')}}
    • @endif @if (Auth::guard('web')->check()) @php $author = Auth::guard('web')->user(); $order_items = App\Models\OrderItem::where('author_id', $author->id)->get(); $order_item_id_arr=[]; foreach($order_items as $order_item){ $order_item_id_arr[]=$order_item->order_id; } $order_item_id_arr=array_unique($order_item_id_arr); $orders = App\Models\Order::whereIn('id', $order_item_id_arr)->where('order_status', 1)->get(); $order_id_arr=[]; foreach($orders as $order){ $order_id_arr[]=$order->id; } $order_id_arr=array_unique($order_id_arr); $orders_items = App\Models\OrderItem::whereIn('order_id', $order_id_arr)->get(); $total_balance = $orders_items->sum('price'); @endphp @if ($setting->commission_type == 'commission')
    • {{__('user.Earnings')}}:

      @if (session()->get('currency_position') == 'right') {{ $total_balance * session()->get('currency_rate') }}{{ session()->get('currency_icon') }} @else {{ session()->get('currency_icon') }}{{ $total_balance * session()->get('currency_rate') }} @endif

    • @endif @endif
@yield('frontend-content') @if (!Route::is('home'))
@endif @php $footer = App\Models\Footer::first(); $item_sold = App\Models\OrderItem::get()->count(); $total_earning = App\Models\OrderItem::get()->sum('price'); $total_user = App\Models\User::where(['email_verified' => 1, 'status' => 1])->get()->count(); $social_links=App\Models\FooterSocialLink::get(); $setting = App\Models\Setting::with('settinglangfrontend')->first(); @endphp

{{__('user.Up to Top')}}

@if ($errors->any()) @foreach ($errors->all() as $error) @endforeach @endif @stack('frontend_js')