view fixes
This commit is contained in:
parent
77a6432944
commit
2c61af9fa4
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class LocalizatonMigrationFileds extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('events', function (Blueprint $table) {
|
||||
$table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
|
@ -13,25 +13,6 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<h1 property="name">{{$event->title}}</h1>
|
||||
<div class="event_venue">
|
||||
<span property="startDate" content="{{ $event->start_date->toIso8601String() }}">
|
||||
{{ $event->startDateFormatted() }}
|
||||
</span>
|
||||
-
|
||||
<span property="endDate" content="{{ $event->end_date->toIso8601String() }}">
|
||||
@if($event->start_date->diffInDays($event->end_date) == 0)
|
||||
{{ $event->end_date->format('H:i') }}
|
||||
@else
|
||||
{{ $event->endDateFormatted() }}
|
||||
@endif
|
||||
</span>
|
||||
@lang("Public_ViewEvent.at")
|
||||
<span property="location" typeof="Place">
|
||||
<b property="name">{{$event->venue->venue_name}}</b>
|
||||
<meta property="address" content="{{ urldecode($event->venue_name) }}">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@
|
|||
@else
|
||||
<meta property="availability" content="http://schema.org/InStock">
|
||||
<div class="standard-box" style="position: relative; padding: 20px 0">
|
||||
<h5 style="font-weight: bold; font-size: 24px; margin-bottom: 20px; text-align: center">{{$ticket->title }} {{$ticket->section->section_no}} {{$ticket->section->description}}</h5>
|
||||
<h5 style="font-weight: bold; font-size: 24px; margin-bottom: 20px; text-align: center">{{$ticket->section->section_no}} </h5>
|
||||
<h4>{{$ticket->section->description}}</h4>
|
||||
<table data-id="{{$ticket->id}}" style="text-align: center; margin: auto"
|
||||
data-content='{!! zanitlananlar($ticket)!!}'>
|
||||
<tbody data-num="{{$ticket->price}}" data-max="{{$ticket->max_per_person}}">
|
||||
|
|
@ -172,4 +173,4 @@
|
|||
</script>
|
||||
@include("Shared.Partials.LangScript")
|
||||
{!!HTML::script(config('attendize.cdn_url_static_assets').'/assets/javascript/frontend.js')!!}
|
||||
@endsection
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
@php
|
||||
$error_number = 400;
|
||||
@endphp
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
|
|
@ -25,4 +28,4 @@
|
|||
@lang("error.back_soon_description")
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
@php
|
||||
$error_number = 400;
|
||||
@endphp
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
|
|
@ -25,4 +28,4 @@
|
|||
@lang("error.back_soon_description")
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue