@php use App\General; use App\Category; use Harimayco\Menu\Models\Menus; use Harimayco\Menu\Models\MenuItems; use App\Product; Use App\Cart; Use App\BanglaConverter; use App\SectionSwitch; use App\Counter; use App\User; use App\FrontendColor; use Illuminate\Support\Facades\Session; $general = General::find(1); $categories = Category::orderBy('name', 'asc')->get(); $products = Product::orderBy('id', 'desc')->get(); $carts = new Cart; $carts = $carts->carts(); $carts = Session::get('product'); $main_menu = Menu::getByName('Main Menu'); $primary_menu = Menu::getByLocation('primary'); $mobile_menu = Menu::getByLocation('mobile'); $footer_right_menu = Menu::getByLocation('footer_right'); $footer_left_menu = Menu::getByLocation('footer_left'); $color = FrontendColor::find(1); @endphp {{$general->meta_name}} @yield('css') @include('frontend.layouts.partials.font') @php @endphp
{{-- --}} {{-- --}}
{{--
--}} @if (Session::has('success'))

{{ Session::get('success') }}

@elseif(Session::has('danger'))

{{ Session::get('danger') }}

@endif
    @if($general->facebook != Null & $general->facebook != "#")
  • @endif @if($general->twitter != Null & $general->twitter != "#")
  • @endif @if($general->linkedin != Null & $general->linkedin != "#")
  • @endif @if($general->google != Null & $general->google != "#")
  • @endif
@yield('language_switch')
@yield('content') @if(SectionSwitch::find(10)->action == 1) @if(Counter::find(1)->automatic == 1)
coubter

{{ $categories->count() }}

+

{{__('home.exclusive_categories')}}

coubter

{{$products->count()}}

+

{{__('home.products_accessories')}}

coubter

{{count(User::orderBy('id', 'asc')->get())}}

+

{{__('home.happy_customers')}}

@elseif(Counter::find(1)->automatic == 0)
coubter

{{ Counter::find(1)->exclusive_categories }}

+

{{__('home.exclusive_categories')}}

coubter

{{ Counter::find(1)->products_accessories }}

+

{{__('home.products_accessories')}}

coubter

{{ Counter::find(1)->happy_customer }}

+

{{__('home.happy_customers')}}

@endif @endif @yield('script')