codigo actual del servidor, con avances de joan
This commit is contained in:
12
resources/views/categories/child_category.blade.php
Normal file
12
resources/views/categories/child_category.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@php
|
||||
$value = null;
|
||||
for ($i=0; $i < $child_category->level; $i++){
|
||||
$value .= '--';
|
||||
}
|
||||
@endphp
|
||||
<option value="{{ $child_category->id }}">{{ $value." ".$child_category->getTranslation('name') }}</option>
|
||||
@if ($child_category->categories)
|
||||
@foreach ($child_category->categories as $childCategory)
|
||||
@include('categories.child_category', ['child_category' => $childCategory])
|
||||
@endforeach
|
||||
@endif
|
||||
Reference in New Issue
Block a user