@extends('frontpage.layouts.main') @section('content')
@foreach ($banners as $banner)

{{ $banner->same_as_default == 1 ? $banner->title : (session()->get('locale') == 'id' ? $banner->title : $banner->title_an) }}

{{ $banner->same_as_default == 1 ? $banner->caption : (session()->get('locale') == 'id' ? $banner->caption : $banner->caption_an) }}

{{ $banner->same_as_default == 1 ? $banner->description : (session()->get('locale') == 'id' ? $banner->description : $banner->description_an) }}

@if($banner->show_button == 1) @php $buttontext = json_decode($banner->button_text); $button_text = $buttontext->button_text; $button_text_an = $buttontext->button_text_an; @endphp {{ $banner->same_as_default == 1 ? $button_text : (session()->get('locale') == 'id' ? $button_text : $button_text_an) }} @endif
@endforeach
@include('frontpage.home.product_list')

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

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

    @foreach ($categories as $row) @if($row->parent == null)
  • @foreach ($categories as $row_child) @if($row_child->parent == $row->id)
  • @foreach ($categories as $row_child2) @if($row_child2->parent == $row_child->id)
  • @endif @endforeach @endif @endforeach @endif @endforeach

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

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

@foreach ($brands as $brand) @endforeach
@endsection @push('scripts') @endpush