venues and about pages on mobile
This commit is contained in:
parent
9ef47eb032
commit
52b0779805
|
|
@ -30,9 +30,9 @@ if(!function_exists('main_categories')){
|
|||
|
||||
if(!function_exists('venues_list')){
|
||||
function venues_list(){
|
||||
return \App\Models\Venue::select('venue_name_ru','id')
|
||||
return \App\Models\Venue::select('venue_name_'.config('app.locale'),'id')
|
||||
->where('active',1)
|
||||
->pluck('venue_name_ru','id');
|
||||
->pluck('venue_name_'.config('app.locale'),'id');
|
||||
}
|
||||
}
|
||||
if(!function_exists('sections_list')){
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ class EventController extends MyBaseController
|
|||
}
|
||||
|
||||
$event->title_ru = $request->get('title_ru');
|
||||
$event->title_tk = $request->get('title_tk');
|
||||
$event->title_tk = $request->get('title_tk')?:$request->get('title_ru');
|
||||
$event->description_ru = strip_tags($request->get('description_ru'));
|
||||
$event->description_tk = strip_tags($request->get('description_tk'));
|
||||
$event->description_tk = strip_tags($request->get('description_tk')?:$request->get('description_ru'));
|
||||
$event->start_date = $request->get('start_date');
|
||||
$event->category_id = $request->get('category_id');
|
||||
$event->sub_category_id = $request->get('sub_category_id');
|
||||
|
|
|
|||
|
|
@ -6,37 +6,25 @@
|
|||
<section class="my-3">
|
||||
<div class="container">
|
||||
<div class="row text_black" >
|
||||
<div class="col-3">
|
||||
|
||||
|
||||
<ul class="list-group w-100 " style="float: left;height: 100%; background-color: #ffffff; z-index: 10;position: relative;color: #000000;font-size: 17px;">
|
||||
<li class="list-group-item border-0 pl-0">
|
||||
<h3>@lang('ClientSide.concert_halls')</h3><div style="background-color: rgba(211,61,51,1);height: 5px;width: 80px;margin-bottom: 15px;"></div> </li>
|
||||
@foreach($venues as $venue)
|
||||
<li class="list-group-item border-0 pl-0">
|
||||
<a class="text-dark capitalizer" href="{{route('venues',['id'=>$venue->id])}}">{{$venue->venue_name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div style="width: 5px;float: left;height: calc(100% - 20px); margin-top: 10px; margin-left: -6px; box-shadow: 2px 0 10px rgba(0,0,0,.1)"></div>
|
||||
</div>
|
||||
<div class="col-9 pl-4" style="font-size: 17px">
|
||||
<div class="col-12 pl-4" style="font-size: 17px">
|
||||
<div class="row">
|
||||
|
||||
<h2>{{$current->venue_name}}</h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
@if($current->images)
|
||||
<img class="details-image" alt="{{$current->venue_name}}" src="{{config('attendize.cdn_url_user_assets').'/'}}">
|
||||
<div class="owl-carousel owl-theme" >
|
||||
@foreach($current->images as $key =>$img)
|
||||
<img class="details-image img-responsive" alt="{{$current->venue_name}}" src="{{asset('user_content/'.$img)}}">
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ">
|
||||
<div class="it-detail">
|
||||
{!! Markdown::parse($current->description) !!}
|
||||
</div>
|
||||
<div class="col-7 ">
|
||||
<div class="it-detail">
|
||||
{!! Markdown::parse($current->description) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-5">
|
||||
<div class="col-12">
|
||||
|
|
@ -50,7 +38,23 @@
|
|||
</section>
|
||||
@endsection
|
||||
@section('after_scripts')
|
||||
<script src="{{asset('vendor/owlcarousel/owl.carousel.min.js')}}"></script>
|
||||
<script>
|
||||
$(".owl-carousel").owlCarousel({
|
||||
loop:true,
|
||||
nav:false,
|
||||
responsive:{
|
||||
0:{
|
||||
items:1
|
||||
},
|
||||
600:{
|
||||
items:1
|
||||
},
|
||||
1000:{
|
||||
items:1
|
||||
}
|
||||
}
|
||||
});
|
||||
function initMap() {
|
||||
var uluru = {lat: {{$venue->address['latlng']['lat']}}, lng: {{$venue->address['latlng']['lng']}}};
|
||||
var map = new google.maps.Map(document.getElementById('map'), {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,18 @@
|
|||
<a class="nav-link @if(url()->current()==$category->url) active @endif" href="{{$category->url}}">{{$category->title}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">@lang('ClientSide.concert_halls')
|
||||
<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
@foreach(venues_list() as $id => $venue)
|
||||
<li>
|
||||
<a href="{{route('venues',['id'=>$id])}}">{{$venue}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<form class="form-inline my-2 my-lg-0" action="{{route('search')}}" method="GET">
|
||||
<input class="form-control mr-sm-2 search-input-box" type="search" name="q" placeholder="{{__('ClientSide.placeholder')}}" aria-label="Search">
|
||||
|
|
|
|||
Loading…
Reference in New Issue