guga42-push-menulara-is-active-duzedildi.

This commit is contained in:
Guvanch Hojamov 2020-08-28 18:11:55 +05:00
parent f581f84927
commit bf11e3e8fa
3 changed files with 5 additions and 5 deletions

View File

@ -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']],
]);

View File

@ -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 = [];

View File

@ -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