guga42-push-menulara-is-active-duzedildi.
This commit is contained in:
parent
f581f84927
commit
bf11e3e8fa
|
|
@ -41,13 +41,13 @@ class MenuCrudController extends CrudController
|
|||
['name' => 'name', 'type' => 'text', 'label' => 'Name'],
|
||||
['name' => 'url', 'type' => 'text', 'label' => 'URL'],
|
||||
['name' => 'menu_type', 'type' => 'enum', 'label' => 'Menu Type'],
|
||||
['name' => 'is_active', 'type' => 'text', 'label' => 'Show on site'],
|
||||
['name' => 'is_active', 'type' => 'text', 'label' => 'Active'],
|
||||
]);
|
||||
|
||||
$this -> crud -> addFields([
|
||||
['name' => 'name', 'type' => 'text', 'label' => 'Name'],
|
||||
['name' => 'url', 'type' => 'text', 'label' => 'URL'],
|
||||
['name' => 'is_active', 'type' => 'text', 'label' => 'Show on site'],
|
||||
['name' => 'is_active', 'type' => 'checkbox', 'label' => 'Active'],
|
||||
['name' => 'menu_type', 'type' => 'enum', 'label' => 'Menu Type'],
|
||||
['name' => 'details', 'type' => 'table', 'label' => 'Details', 'columns' => ['section' => 'Section']],
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class Menu extends Model
|
|||
// protected $primaryKey = 'id';
|
||||
// public $timestamps = false;
|
||||
// protected $guarded = ['id'];
|
||||
protected $fillable = ['name','url','menu_type'];
|
||||
protected $fillable = ['name','url','menu_type','is_active'];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -510,7 +510,7 @@
|
|||
<td>@isset($table['set_radio']) {{$table['set_radio']}} @endisset</td>
|
||||
<td>@isset($table['set_sub']) {{$table['set_sub']}}@endisset</td>
|
||||
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
|
||||
<td>@isset($table['price']) {{$table['price']}} TMT @endisset</td>
|
||||
<td> {{$table['price'] ?? ''}} TMT </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endisset
|
||||
|
|
@ -622,7 +622,7 @@
|
|||
<td>@isset($table['set_radio']) {{$table['set_radio']}} @endisset</td>
|
||||
<td>@isset($table['set_sub']) {{$table['set_sub']}}@endisset</td>
|
||||
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
|
||||
<td>@isset($table['price']) {{$table['price']}} TMT @endisset</td>
|
||||
<td>{{$table['price'] ?? ''}} TMT</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endisset
|
||||
|
|
|
|||
Loading…
Reference in New Issue