diff --git a/app/Http/Controllers/Admin/CategoryCrudController.php b/app/Http/Controllers/Admin/CategoryCrudController.php index 6bbd0e9a..60495189 100644 --- a/app/Http/Controllers/Admin/CategoryCrudController.php +++ b/app/Http/Controllers/Admin/CategoryCrudController.php @@ -36,6 +36,7 @@ class CategoryCrudController extends CrudController // $this->crud->setFromDb(); $this->crud->addColumns([ ['name'=>'id','type'=>'text','label'=>'Id'], + ['name'=>'title','type'=>'text','label'=>'Title en'], ['name'=>'title_tk','type'=>'text','label'=>'Title tm'], ['name'=>'title_ru','type'=>'text','label'=>'Title ru'], ['name'=>'view_type','type'=>'text','label'=>'View Type'], @@ -43,6 +44,7 @@ class CategoryCrudController extends CrudController ['name'=>'parent_id','type'=>'text','label'=>'Parent'], ]); $this->crud->addFields([ + ['name'=>'title','type'=>'text','label'=>'Title em'], ['name'=>'title_tk','type'=>'text','label'=>'Title tm'], ['name'=>'title_ru','type'=>'text','label'=>'Title ru'], ['name'=>'view_type','type' =>'enum', 'label'=>'View Type'], diff --git a/app/Http/Controllers/Admin/SectionCrudController.php b/app/Http/Controllers/Admin/SectionCrudController.php index ba8f2279..50a11022 100644 --- a/app/Http/Controllers/Admin/SectionCrudController.php +++ b/app/Http/Controllers/Admin/SectionCrudController.php @@ -36,13 +36,21 @@ class SectionCrudController extends CrudController // TODO: remove setFromDb() and manually define Fields and Columns // $this->crud->setFromDb(); $this->crud->addColumns([ - ['name'=>'section_no','type'=>'text','label'=>'Section No'], - ['name'=>'description','type'=>'text','label'=>'Description'], + ['name'=>'section_no','type'=>'text','label'=>'Section No En'], + ['name'=>'section_no_ru','type'=>'text','label'=>'Section No Ru'], + ['name'=>'section_no_tk','type'=>'text','label'=>'Section No Tk'], + ['name'=>'description','type'=>'text','label'=>'Description En'], + ['name'=>'description_ru','type'=>'text','label'=>'Description Ru'], + ['name'=>'description_tk','type'=>'text','label'=>'Description Tk'], ]); $this->crud->addFields([ ['name'=>'section_no','type'=>'text','label'=>'Section No'], + ['name'=>'section_no_ru','type'=>'text','label'=>'Section No Ru'], + ['name'=>'section_no_tk','type'=>'text','label'=>'Section No Tk'], ['name'=>'description','type'=>'text','label'=>'Description'], + ['name'=>'description_ru','type'=>'text','label'=>'Description Ru'], + ['name'=>'description_tk','type'=>'text','label'=>'Description Tk'], ['name' => 'venue_id', 'type'=>'select','entity'=>'venue','attribute'=>'venue_name'], [ // image 'label' => "Section Image", diff --git a/app/Http/Controllers/Admin/SliderCrudController.php b/app/Http/Controllers/Admin/SliderCrudController.php index 27962fa4..4b5a195b 100644 --- a/app/Http/Controllers/Admin/SliderCrudController.php +++ b/app/Http/Controllers/Admin/SliderCrudController.php @@ -34,8 +34,12 @@ class SliderCrudController extends CrudController // TODO: remove setFromDb() and manually define Fields and Columns $this->crud->addColumns([ - ['name' => 'title','type' => 'text', 'label' => 'Title'], - ['name' => 'text','type' => 'text', 'label' => 'Text'], + ['name' => 'title','type' => 'text', 'label' => 'Title En'], + ['name' => 'title_ru','type' => 'text', 'label' => 'Title Ru'], + ['name' => 'title_tk','type' => 'text', 'label' => 'Title Tk'], + ['name' => 'text','type' => 'text', 'label' => 'Text En'], + ['name' => 'text_ru','type' => 'text', 'label' => 'Text Ru'], + ['name' => 'text_tk','type' => 'text', 'label' => 'Text Tk'], ['name' => 'link','type' => 'text', 'label' => 'Link'], ['name' => 'active','type' => 'boolean', 'label' => 'Active'], ['name' => 'image','type' => 'text', 'label' => 'Image'], diff --git a/app/Http/Controllers/Admin/VenueCrudController.php b/app/Http/Controllers/Admin/VenueCrudController.php index 4c312381..f68c4699 100644 --- a/app/Http/Controllers/Admin/VenueCrudController.php +++ b/app/Http/Controllers/Admin/VenueCrudController.php @@ -35,12 +35,16 @@ class VenueCrudController extends CrudController // TODO: remove setFromDb() and manually define Fields and Columns $this->crud->addColumns([ - ['name'=>'venue_name','type'=>'text','label'=>'Venue Name'], + ['name'=>'venue_name','type'=>'text','label'=>'Venue Name En'], + ['name'=>'venue_name_ru','type'=>'text','label'=>'Venue Name Ru'], + ['name'=>'venue_name_tk','type'=>'text','label'=>'Venue Name Tk'], ['name'=>'active','type'=>'boolean','label'=>'Active'] ]); $this->crud->addFields([ - ['name'=>'venue_name','type'=>'text','label'=>'Venue Name'], + ['name'=>'venue_name','type'=>'text','label'=>'Venue Name En'], + ['name'=>'venue_name_ru','type'=>'text','label'=>'Venue Name Ru'], + ['name'=>'venue_name_tk','type'=>'text','label'=>'Venue Name Tk'], [ // Address 'name' => 'address', 'label' => 'Address', diff --git a/database/migrations/2019_12_13_164045_localizaton_migration_fileds.php b/database/migrations/2019_12_13_164045_localizaton_migration_fileds.php new file mode 100644 index 00000000..42cf877c --- /dev/null +++ b/database/migrations/2019_12_13_164045_localizaton_migration_fileds.php @@ -0,0 +1,58 @@ +string('title_ru')->nullable(); + $table->string('title_tk')->nullable(); + $table->text('description_tk')->nullable(); + $table->text('description_ru')->nullable; + }); + + Schema::table('venues', function (Blueprint $table) { + $table->string('venue_name_ru')->nullable(); + $table->string('venue_name_tk')->nullable(); + }); + + Schema::table('sections', function (Blueprint $table) { + $table->string('section_no_ru')->nullable(); + $table->string('description_ru')->nullable(); + $table->string('section_no_tk')->nullable(); + $table->string('description_tk')->nullable(); + }); + + Schema::table('sliders', function (Blueprint $table) { + $table->string('title_ru')->nullable(); + $table->string('text_ru')->nullable(); + $table->string('title_tk')->nullable(); + $table->string('text_tk')->nullable(); + }); + + Schema::table('categories', function (Blueprint $table) { + $table->string('title')->nullable(); + + }); + + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/resources/views/Bilettm/ViewEvent/Partials/HeaderSection.blade.php b/resources/views/Bilettm/ViewEvent/Partials/HeaderSection.blade.php index 6e453968..922000dc 100644 --- a/resources/views/Bilettm/ViewEvent/Partials/HeaderSection.blade.php +++ b/resources/views/Bilettm/ViewEvent/Partials/HeaderSection.blade.php @@ -13,25 +13,6 @@

{{$event->title}}

-
- - {{ $event->startDateFormatted() }} - - - - - @if($event->start_date->diffInDays($event->end_date) == 0) - {{ $event->end_date->format('H:i') }} - @else - {{ $event->endDateFormatted() }} - @endif - - @lang("Public_ViewEvent.at") - - {{$event->venue->venue_name}} - - -
-
- \ No newline at end of file + diff --git a/resources/views/Bilettm/ViewEvent/SeatsPage.blade.php b/resources/views/Bilettm/ViewEvent/SeatsPage.blade.php index e74db21b..5e3b4cab 100644 --- a/resources/views/Bilettm/ViewEvent/SeatsPage.blade.php +++ b/resources/views/Bilettm/ViewEvent/SeatsPage.blade.php @@ -65,7 +65,8 @@ @else
-
{{$ticket->title }} {{$ticket->section->section_no}} {{$ticket->section->description}}
+
{{$ticket->section->section_no}}
+

{{$ticket->section->description}}

@@ -172,4 +173,4 @@ @include("Shared.Partials.LangScript") {!!HTML::script(config('attendize.cdn_url_static_assets').'/assets/javascript/frontend.js')!!} -@endsection \ No newline at end of file +@endsection diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index a1782ded..ab7c0e88 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -1,3 +1,6 @@ +@php + $error_number = 400; +@endphp @@ -25,4 +28,4 @@ @lang("error.back_soon_description") </div> </body> -</html> \ No newline at end of file +</html> diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index a1782ded..ab7c0e88 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -1,3 +1,6 @@ +@php + $error_number = 400; +@endphp <html> <head> <title> @@ -25,4 +28,4 @@ @lang("error.back_soon_description") </div> </body> -</html> \ No newline at end of file +</html>