sections fix
This commit is contained in:
parent
486316f7d7
commit
6e527418b6
|
|
@ -39,7 +39,6 @@ if(!function_exists('sections_list')){
|
||||||
function sections_list($venue_id){
|
function sections_list($venue_id){
|
||||||
return \App\Models\Section::select('id','section_no_ru')
|
return \App\Models\Section::select('id','section_no_ru')
|
||||||
->where('venue_id',$venue_id)
|
->where('venue_id',$venue_id)
|
||||||
->where('active',1)
|
|
||||||
->pluck('section_no_ru','id');
|
->pluck('section_no_ru','id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ class SectionCrudController extends CrudController
|
||||||
['name'=>'description','type'=>'text','label'=>'Description En'],
|
['name'=>'description','type'=>'text','label'=>'Description En'],
|
||||||
['name'=>'description_ru','type'=>'text','label'=>'Description Ru'],
|
['name'=>'description_ru','type'=>'text','label'=>'Description Ru'],
|
||||||
['name'=>'description_tk','type'=>'text','label'=>'Description Tk'],
|
['name'=>'description_tk','type'=>'text','label'=>'Description Tk'],
|
||||||
|
['name' => 'venue_id', 'type'=>'select','entity'=>'venue','attribute'=>'venue_name_ru'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->crud->addFields([
|
$this->crud->addFields([
|
||||||
|
|
@ -51,7 +52,7 @@ class SectionCrudController extends CrudController
|
||||||
['name'=>'description','type'=>'text','label'=>'Description'],
|
['name'=>'description','type'=>'text','label'=>'Description'],
|
||||||
['name'=>'description_ru','type'=>'text','label'=>'Description Ru'],
|
['name'=>'description_ru','type'=>'text','label'=>'Description Ru'],
|
||||||
['name'=>'description_tk','type'=>'text','label'=>'Description Tk'],
|
['name'=>'description_tk','type'=>'text','label'=>'Description Tk'],
|
||||||
['name' => 'venue_id', 'type'=>'select','entity'=>'venue','attribute'=>'venue_name'],
|
['name' => 'venue_id', 'type'=>'select','entity'=>'venue','attribute'=>'venue_name_ru'],
|
||||||
[ // image
|
[ // image
|
||||||
'label' => "Section Image",
|
'label' => "Section Image",
|
||||||
'name' => "section_image",
|
'name' => "section_image",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue