Skip to content

Commit

Permalink
added group & category description
Browse files Browse the repository at this point in the history
added sub-menu repsonsive homayon
  • Loading branch information
A1Gard committed Feb 16, 2025
1 parent f87f46f commit 1f53abc
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "CategoryDescription",
"version": "1.0",
"author": "xStack",
"email": "[email protected]",
"license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.CategoryDescription {
// scss
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "GroupDescription",
"version": "1.0",
"author": "xStack",
"email": "[email protected]",
"license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.GroupDescription {
// scss
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions resources/views/segments/menu/HomayonMenu/HomayonMenu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1f53abc

Please sign in to comment.