|
@@ -15,7 +15,7 @@ class DishesController extends AdminController
|
|
|
*
|
|
|
* @var string
|
|
|
*/
|
|
|
- protected $title = 'Dishes';
|
|
|
+ protected $title = 'Меню';
|
|
|
|
|
|
/**
|
|
|
* Make a grid builder.
|
|
@@ -27,11 +27,11 @@ class DishesController extends AdminController
|
|
|
$grid = new Grid(new Dishes());
|
|
|
|
|
|
$grid->column('id', __('Id'));
|
|
|
- $grid->column('name', __('Name'));
|
|
|
- $grid->column('price', __('Price'));
|
|
|
- $grid->column('weigh', __('Weigh'));
|
|
|
- $grid->column('category_id', __('Category id'));
|
|
|
- $grid->column('composition', __('Composition'));
|
|
|
+ $grid->column('name', __('Название'));
|
|
|
+ $grid->column('price', __('Цена'));
|
|
|
+ $grid->column('weigh', __('Вес'));
|
|
|
+ $grid->column('categories', __('Категория'));
|
|
|
+ $grid->column('composition', __('Описание'));
|
|
|
$grid->column('created_at', __('Created at'))->hide();
|
|
|
$grid->column('updated_at', __('Updated at'))->hide();
|
|
|
|
|
@@ -49,12 +49,12 @@ class DishesController extends AdminController
|
|
|
$show = new Show(Dishes::findOrFail($id));
|
|
|
|
|
|
$show->field('id', __('Id'));
|
|
|
- $show->field('name', __('Name'));
|
|
|
- $show->field('price', __('Price'));
|
|
|
- $show->field('weigh', __('Weigh'));
|
|
|
- $show->field('category_id', __('Category id'));
|
|
|
+ $show->field('name', __('Название'));
|
|
|
+ $show->field('price', __('Цена'));
|
|
|
+ $show->field('weigh', __('Вес'));
|
|
|
+ $show->field('categories', __('Категория'));
|
|
|
$show->field('composition', __('Composition'));
|
|
|
- $show->field('created_at', __('Created at'));
|
|
|
+ $show->field('created_at', __('Описание'));
|
|
|
$show->field('updated_at', __('Updated at'));
|
|
|
|
|
|
return $show;
|
|
@@ -69,12 +69,12 @@ class DishesController extends AdminController
|
|
|
{
|
|
|
$form = new Form(new Dishes());
|
|
|
|
|
|
- $form->textarea('name', __('Name'));
|
|
|
- $form->number('price', __('Price'));
|
|
|
- $form->number('weigh', __('Weigh'));
|
|
|
- $form->image('image');
|
|
|
- $form->text('categories.name');
|
|
|
- $form->textarea('composition', __('Composition'));
|
|
|
+ $form->textarea('name', __('Название'));
|
|
|
+ $form->number('price', __('Цена'));
|
|
|
+ $form->number('weigh', __('Вес'));
|
|
|
+ $form->image('image', __('Изображение'));
|
|
|
+ $form->text('categories', __('Категория'));
|
|
|
+ $form->textarea('composition', __('Описание'));
|
|
|
|
|
|
return $form;
|
|
|
}
|