sections fix

This commit is contained in:
merdan 2020-03-05 19:12:21 +05:00
parent 486316f7d7
commit 6e527418b6
2 changed files with 2 additions and 2 deletions

View File

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

View File

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