added group & category description

added sub-menu repsonsive homayon
master
A1Gard 7 days ago
parent f87f46f813
commit 1f53abc399

@ -0,0 +1,16 @@
<section class="CategoryDescription live-setting" data-live="{{$data->area_name.'_'.$data->part}}" >
<div class="{{gfx()['container']}} py-3">
<div class="row align-items-center">
<div class="col-md-6">
<h1>
{{$category->name}}
</h1>
{{$category->description}}
</div>
<div class="col-md-6">
<img src=" {{$category->imgUrl()}}" alt="{{$category->name}}" class="img-fluid">
</div>
</div>
</div>
</section>

@ -0,0 +1,10 @@
{
"name": "CategoryDescription",
"version": "1.0",
"author": "xStack",
"email": "xshop@xstack.ir",
"license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}

@ -0,0 +1,21 @@
<?php
namespace Resources\Views\Segments;
use App\Models\Part;
class CategoryDescription
{
public static function onAdd(Part $part = null)
{
}
public static function onRemove(Part $part = null)
{
}
public static function onMount(Part $part = null)
{
return $part;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

@ -0,0 +1,15 @@
<section class="GroupDescription live-setting" data-live="{{$data->area_name.'_'.$data->part}}" >
<div class="{{gfx()['container']}} py-3">
<div class="row align-items-center">
<div class="col-md-6">
<h1>
{{$group->name}}
</h1>
{{$group->description}}
</div>
<div class="col-md-6">
<img src="{{$group->imgUrl()}}" alt="{{$group->name}}" class="img-fluid">
</div>
</div>
</div>
</section>

@ -0,0 +1,10 @@
{
"name": "GroupDescription",
"version": "1.0",
"author": "xStack",
"email": "xshop@xstack.ir",
"license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}

@ -0,0 +1,21 @@
<?php
namespace Resources\Views\Segments;
use App\Models\Part;
class GroupDescription
{
public static function onAdd(Part $part = null)
{
}
public static function onRemove(Part $part = null)
{
}
public static function onMount(Part $part = null)
{
return $part;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

@ -137,6 +137,28 @@
<a href="{{$item->webUrl()}}">
{{$item->title}}
</a>
@if($item->dest && $item->dest->children()->where('hide',false)->count() > 0)
<ul class="px-1 border-start border-white">
@foreach($item->dest->children()->where('hide',false)->get() as $itm)
<li>
<a href="{{$itm->webUrl()}}">
{{$itm->name}}
</a>
@if($itm->children()->where('hide',false)->count() > 0)
<ul class="px-1 border-start border-white">
@foreach($itm->children()->where('hide',false)->get() as $subItem)
<li>
<a href="{{$subItem->webUrl()}}">
{{$subItem->name}}
</a>
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>

Loading…
Cancel
Save