⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
ecommerce.dev-unit.com
/
views
/
includes
/
View File Name :
categories.blade.php
@php $categories = App\Models\Category::with('subcategory')->whereStatus(1)->orderby('serial','asc')->take(8)->get(); @endphp <div class="left-category-area"> <div class="category-header"> <h4><i class="icon-align-justify"></i> {{ __('Categories') }}</h4> </div> <div class="category-list"> @foreach ($categories as $key => $pcategory) <div class="c-item"> <a class="d-block navi-link" href="{{route('front.catalog').'?category='.$pcategory->slug}}"> <img class="lazy" data-src="{{asset('assets/images/'.$pcategory->photo)}}"> <span class="text-gray-dark">{{$pcategory->name}}</span> @if ($pcategory->subcategory->count() > 0) <i class="icon-chevron-right"></i> @endif </a> @if ($pcategory->subcategory->count() > 0) <div class="sub-c-box"> @foreach ($pcategory->subcategory as $scategory) <div class="child-c-box"> <a class="title" href="{{route('front.catalog').'?subcategory='.$scategory->slug}}"> {{$scategory->name}} @if ($scategory->childcategory->count() > 0) <i class="icon-chevron-right"></i> @endif </a> @if ($scategory->childcategory->count() > 0) <div class="child-category"> @foreach ($scategory->childcategory as $childcategory) <a href="{{route('front.catalog').'?childcategory='.$childcategory->slug}}">{{$childcategory->name}}</a> @endforeach </div> @endif </div> @endforeach </div> @endif </div> @endforeach <a href="{{route('front.catalog')}}" class="d-block navi-link view-all-category"> <img class="lazy" data-src="{{ asset('assets/images/category.jpg') }}" alt=""> <span class="text-gray-dark">{{ __('All Categories')}}</span> </a> </div> </div>