working on checkout page

This commit is contained in:
merdiano 2019-09-14 17:27:41 +05:00
parent 700b7214e9
commit 9670b5c373
18 changed files with 438 additions and 38 deletions

View File

@ -33,10 +33,12 @@ if(!function_exists('category_menu')){
* make menu from categories
*/
function category_menu(){
$categories = main_categories();
if(count($categories)>6){
}
return \App\Models\Category::main()->select('id','title_tm','title_ru')->get();
// $categories = main_categories();
// if(count($categories)>6){
// //todo implement top category menu
// }
}
}

View File

@ -277,10 +277,11 @@ class EventCheckoutController extends Controller
];
if ($this->is_embedded) {
return view('Public.ViewEvent.Embedded.EventPageCheckout', $data);
return view('Public.ViewEvent.Embedded.EventPageCheckout', $data); // <--- todo check this out
}
return view('Public.ViewEvent.EventPageCheckout', $data);
// return view('Public.ViewEvent.EventPageCheckout', $data);
return view('Bilettm.ViewEvent.EventPageCheckout', $data);
}
/**

View File

@ -120,11 +120,11 @@ Route::group(
/*
* Public event page routes
*/
Route::group(['prefix' => 'category'], function () {
Route::group(['prefix' => 'c'], function () {
/**
* Events by category
*/
Route::get('/{category_id}', [
Route::get('/{cat_id}/{cat_slug?}', [
'as' => 'showCategoryEventsPage',
'uses' => 'PublicController@showCategoryEvents',
]);

View File

@ -9,6 +9,9 @@
namespace App\Models;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
class Category extends \Illuminate\Database\Eloquent\Model{
use \Backpack\CRUD\CrudTrait;
/**
@ -30,6 +33,22 @@ class Category extends \Illuminate\Database\Eloquent\Model{
*/
protected $softDelete = false;
protected $fillable = ['title_tm','title_ru','view_type','lft','rgt','parent_id','depth'];
/**
* Get the url of the event.
*
* @return string
*/
public function getUrlAttribute()
{
return route("showCategoryEventsPage", ["cat_id"=>$this->id, "cat_slug"=>Str::slug($this->title)]);
//return URL::to('/') . '/e/' . $this->id . '/' . Str::slug($this->title);
}
public function getTitleAttribute(){
return $this->{'title_'.Config::get('app.locale')};
}
/**
* The events associated with the category.
*

View File

@ -46,9 +46,7 @@
"backpack/settings": "^2.1",
"backpack/pagemanager": "^1.1",
"backpack/permissionmanager": "^4.0",
"davejamesmiller/laravel-breadcrumbs": "5.3",
"teamtnt/tntsearch": "^2.1",
"teamtnt/laravel-scout-tntsearch-driver": "^7.2"
"davejamesmiller/laravel-breadcrumbs": "5.3"
},

View File

@ -65,7 +65,7 @@ return [
|
*/
'locale' => 'tk',
'locale' => 'ru',
/*
|--------------------------------------------------------------------------
@ -172,8 +172,6 @@ return [
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Laracasts\Utilities\JavaScript\JavaScriptServiceProvider::class,
Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
Laravel\Scout\ScoutServiceProvider::class,
TeamTNT\Scout\TNTSearchScoutServiceProvider::class,
],
/*

View File

@ -46,13 +46,13 @@ return [
//'en-AU' => ['name' => 'Australian English', 'script' => 'Latn', 'native' => 'Australian English', 'regional' => 'en_AU'],
//'en-GB' => ['name' => 'British English', 'script' => 'Latn', 'native' => 'British English', 'regional' => 'en_GB'],
//'en-US' => ['name' => 'U.S. English', 'script' => 'Latn', 'native' => 'U.S. English', 'regional' => 'en_US'],
'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'español', 'regional' => 'es_ES'],
//'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'español', 'regional' => 'es_ES'],
//'eo' => ['name' => 'Esperanto', 'script' => 'Latn', 'native' => 'esperanto', 'regional' => ''],
//'eu' => ['name' => 'Basque', 'script' => 'Latn', 'native' => 'euskara', 'regional' => 'eu_ES'],
//'ewo' => ['name' => 'Ewondo', 'script' => 'Latn', 'native' => 'ewondo', 'regional' => ''],
//'ee' => ['name' => 'Ewe', 'script' => 'Latn', 'native' => 'eʋegbe', 'regional' => ''],
//'fil' => ['name' => 'Filipino', 'script' => 'Latn', 'native' => 'Filipino', 'regional' => 'fil_PH'],
'fr' => ['name' => 'French', 'script' => 'Latn', 'native' => 'français', 'regional' => 'fr_FR'],
//'fr' => ['name' => 'French', 'script' => 'Latn', 'native' => 'français', 'regional' => 'fr_FR'],
//'fr-CA' => ['name' => 'Canadian French', 'script' => 'Latn', 'native' => 'français canadien', 'regional' => 'fr_CA'],
//'fy' => ['name' => 'Western Frisian', 'script' => 'Latn', 'native' => 'frysk', 'regional' => 'fy_DE'],
//'fur' => ['name' => 'Friulian', 'script' => 'Latn', 'native' => 'furlan', 'regional' => 'fur_IT'],
@ -142,7 +142,7 @@ return [
//'hz' => ['name' => 'Herero', 'script' => 'Latn', 'native' => 'Otjiherero', 'regional' => ''],
//'uz-Latn' => ['name' => 'Uzbek (Latin)', 'script' => 'Latn', 'native' => 'oʼzbekcha', 'regional' => 'uz_UZ'],
//'nds' => ['name' => 'Low German', 'script' => 'Latn', 'native' => 'Plattdüütsch', 'regional' => 'nds_DE'],
'pl' => ['name' => 'Polish', 'script' => 'Latn', 'native' => 'polski', 'regional' => 'pl_PL'],
//'pl' => ['name' => 'Polish', 'script' => 'Latn', 'native' => 'polski', 'regional' => 'pl_PL'],
//'pt' => ['name' => 'Portuguese', 'script' => 'Latn', 'native' => 'português', 'regional' => 'pt_PT'],
//'pt-BR' => ['name' => 'Brazilian Portuguese', 'script' => 'Latn', 'native' => 'português do Brasil', 'regional' => 'pt_BR'],
//'ff' => ['name' => 'Fulah', 'script' => 'Latn', 'native' => 'Pulaar', 'regional' => 'ff_SN'],
@ -221,7 +221,7 @@ return [
//'mk' => ['name' => 'Macedonian', 'script' => 'Cyrl', 'native' => 'македонски', 'regional' => 'mk_MK'],
//'mn' => ['name' => 'Mongolian (Cyrillic)', 'script' => 'Cyrl', 'native' => 'монгол', 'regional' => 'mn_MN'],
//'ce' => ['name' => 'Chechen', 'script' => 'Cyrl', 'native' => 'нохчийн мотт', 'regional' => 'ce_RU'],
//'ru' => ['name' => 'Russian', 'script' => 'Cyrl', 'native' => 'русский', 'regional' => 'ru_RU'],
'ru' => ['name' => 'Russian', 'script' => 'Cyrl', 'native' => 'русский', 'regional' => 'ru_RU'],
//'sah' => ['name' => 'Yakut', 'script' => 'Cyrl', 'native' => 'саха тыла', 'regional' => ''],
//'tt' => ['name' => 'Tatar', 'script' => 'Cyrl', 'native' => 'татар теле', 'regional' => 'tt_RU'],
//'tg' => ['name' => 'Tajik (Cyrillic)', 'script' => 'Cyrl', 'native' => 'тоҷикӣ', 'regional' => 'tg_TJ'],

View File

@ -30,9 +30,9 @@
</form>
</div>
<ul class="navbar-nav ml-auto col-12 justify-content-between" id="bilet-menu-id">
@foreach(main_categories() as $id => $category)
@foreach(category_menu() as $category)
<li class="nav-item g-ml-10--lg">
<a class="nav-link text-uppercase g-pl-5 g-pr-0 g-py-20" href="{{route('showCategoryEventsPage',$id)}}">{{$category}}</a>
<a class="nav-link text-uppercase g-pl-5 g-pr-0 g-py-20" href="{{$category->url}}">{{$category->title}}</a>
</li>
<li class="diam-sim nav-item g-ml-10--lg"><a class="nav-link text-uppercase g-pl-5 g-pr-0 g-py-20"><svg class="Polygon_3" fill="#ffffff" width="7px" viewBox="0 0 8 8">
<path id="Polygon_3" d="M 3.292892932891846 0.7071067690849304 C 3.683417320251465 0.3165824711322784 4.316582202911377 0.3165824711322784 4.707106590270996 0.7071067690849304 L 7.292893409729004 3.292893171310425 C 7.683417320251465 3.683417320251465 7.683417320251465 4.316582679748535 7.292893409729004 4.707107067108154 L 4.707106590270996 7.292893409729004 C 4.316582202911377 7.683417320251465 3.683417081832886 7.683417320251465 3.292892932891846 7.292893409729004 L 0.7071067094802856 4.707106590270996 C 0.3165824413299561 4.316582202911377 0.3165824711322784 3.683417320251465 0.7071067690849304 3.292892932891846 Z">

View File

@ -1,7 +1,6 @@
@extends('Bilettm.Layouts.BilettmLayout')
@section('content')
{{\DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs::render('home')}}
<section style="margin-top: 30px; margin-bottom: 100px">
<div class="container">
<div class="row m-0">
@ -25,13 +24,13 @@
<meta property="address" content="{{ urldecode($event->venue_name) }}">
</span>
</div>
@include('Bilettm.Partials.TicketSchedule')
@include('Bilettm.ViewEvent.Partials.TicketSchedule')
</div>
</div>
</div>
<div class="col-2 text-center">
@include('Bilettm.Partials.EventShareButtons')
@include('Bilettm.ViewEvent.Partials.EventShareButtons')
<img src="{{asset('assets/images/advs/adv.png')}}" style="width: 100%">
</div>
{{--<div class="col-12 p-0">--}}
@ -40,6 +39,18 @@
</div>
</div>
</section>
<section id="location" class="container p0">
<div class="row">
<div class="col-md-12">
<div class="google-maps content">
<iframe frameborder="0" style="border:0;"
src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q={{$event->map_address}}&amp;aq=0&amp;oq={{$event->map_address}}&amp;sll=28.659344,-81.187888&amp;sspn=0.128789,0.264187&amp;ie=UTF8&amp;hq={{$event->map_address}}&amp;t=m&amp;z=15&amp;iwloc=A&amp;output=embed">
</iframe>
</div>
</div>
</div>
</section>
@endsection
@section('after_scripts')
@include("Shared.Partials.LangScript")

View File

@ -0,0 +1,8 @@
@extends('Bilettm.Layouts.BilettmLayout')
@section('content')
@include('Bilettm.ViewEvent.Partials.CheckoutHeader')
@include('Bilettm.ViewEvent.Partials.CreateOrderSection')
<script>var OrderExpires = {{strtotime($expires)}};</script>
@include('Bilettm.ViewEvent.Partials.CheckoutFooter')
@endsection

View File

@ -0,0 +1,10 @@
@extends('Bilettm.Layouts.BilettmLayout')
@section('content')
@include('Public.ViewEvent.Partials.EventHeaderSection')
@include('Public.ViewEvent.Partials.EventShareSection')
@include('Public.ViewEvent.Partials.EventViewOrderSection')
@include('Public.ViewEvent.Partials.EventFooterSection')
@stop

View File

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: merdan
* Date: 9/13/2019
* Time: 16:31
*/

View File

@ -0,0 +1,37 @@
<section id="organiserHead" class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-12">
<div onclick="window.location='{{$event->event_url}}#organiser'" class="event_organizer">
<b>{{$event->organiser->name}}</b> @lang("Public_ViewEvent.presents")
</div>
</div>
</div>
</div>
</section>
<section id="intro" class="container">
<div class="row">
<div class="col-md-12">
<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_name}}</b>
<meta property="address" content="{{ urldecode($event->venue_name) }}">
</span>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,307 @@
<section id='order_form' class="container">
<div class="row">
<h1 class="section_head">
@lang("Public_ViewEvent.order_details")
</h1>
</div>
<div class="row">
<div class="col-md-12" style="text-align: center">
@lang("Public_ViewEvent.below_order_details_header")
</div>
<div class="col-md-4 col-md-push-8">
<div class="panel">
<div class="panel-heading">
<h3 class="panel-title">
<i class="ico-cart mr5"></i>
@lang("Public_ViewEvent.order_summary")
</h3>
</div>
<div class="panel-body pt0">
<table class="table mb0 table-condensed">
@foreach($tickets as $ticket)
<tr>
<td class="pl0">{{{$ticket['ticket']['title']}}} X <b>{{$ticket['qty']}}</b></td>
<td style="text-align: right;">
@if((int)ceil($ticket['full_price']) === 0)
@lang("Public_ViewEvent.free")
@else
{{ money($ticket['full_price'], $event->currency) }}
@endif
</td>
</tr>
@endforeach
</table>
</div>
@if($order_total > 0)
<div class="panel-footer">
<h5>
@lang("Public_ViewEvent.total"): <span style="float: right;"><b>{{ $orderService->getOrderTotalWithBookingFee(true) }}</b></span>
</h5>
@if($event->organiser->charge_tax)
<h5>
{{ $event->organiser->tax_name }} ({{ $event->organiser->tax_value }}%):
<span style="float: right;"><b>{{ $orderService->getTaxAmount(true) }}</b></span>
</h5>
<h5>
<strong>@lang("Public_ViewEvent.grand_total")</strong>
<span style="float: right;"><b>{{ $orderService->getGrandTotal(true) }}</b></span>
</h5>
@endif
</div>
@endif
</div>
<div class="help-block">
{!! @trans("Public_ViewEvent.time", ["time"=>"<span id='countdown'></span>"]) !!}
</div>
</div>
<div class="col-md-8 col-md-pull-4">
<div class="event_order_form">
{!! Form::open(['url' => route('postCreateOrder', ['event_id' => $event->id]), 'class' => ($order_requires_payment && @$payment_gateway->is_on_site) ? 'ajax payment-form' : 'ajax', 'data-stripe-pub-key' => isset($account_payment_gateway->config['publishableKey']) ? $account_payment_gateway->config['publishableKey'] : '']) !!}
{!! Form::hidden('event_id', $event->id) !!}
<h3> @lang("Public_ViewEvent.your_information")</h3>
<div class="row">
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("order_first_name", trans("Public_ViewEvent.first_name")) !!}
{!! Form::text("order_first_name", null, ['required' => 'required', 'class' => 'form-control']) !!}
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("order_last_name", trans("Public_ViewEvent.last_name")) !!}
{!! Form::text("order_last_name", null, ['required' => 'required', 'class' => 'form-control']) !!}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label("order_email", trans("Public_ViewEvent.email")) !!}
{!! Form::text("order_email", null, ['required' => 'required', 'class' => 'form-control']) !!}
</div>
</div>
</div>
{{--<div class="row"><div class="col-md-12">&nbsp;</div></div>--}}
{{--<div class="row">--}}
{{--<div class="col-md-12">--}}
{{--<div class="form-group">--}}
{{--<div class="custom-checkbox">--}}
{{--{!! Form::checkbox('is_business', 1, null, ['data-toggle' => 'toggle', 'id' => 'is_business']) !!}--}}
{{--{!! Form::label('is_business', trans("Public_ViewEvent.is_business"), ['class' => 'control-label']) !!}--}}
{{--</div>--}}
{{--</div>--}}
{{--</div>--}}
{{--</div>--}}
{{--<div class="row"><div class="col-md-12">&nbsp;</div></div>--}}
<div class="row hidden" id="business_details">
<div class="col-md-12">
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("business_name", trans("Public_ViewEvent.business_name")) !!}
{!! Form::text("business_name", null, ['class' => 'form-control']) !!}
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("business_tax_number", trans("Public_ViewEvent.business_tax_number")) !!}
{!! Form::text("business_tax_number", null, ['class' => 'form-control']) !!}
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("business_address_line1", trans("Public_ViewEvent.business_address_line1")) !!}
{!! Form::text("business_address_line1", null, ['class' => 'form-control']) !!}
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
{!! Form::label("business_address_line2", trans("Public_ViewEvent.business_address_line2")) !!}
{!! Form::text("business_address_line2", null, ['class' => 'form-control']) !!}
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<div class="form-group">
{!! Form::label("business_address_state", trans("Public_ViewEvent.business_address_state_province")) !!}
{!! Form::text("business_address_state", null, ['class' => 'form-control']) !!}
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
{!! Form::label("business_address_city", trans("Public_ViewEvent.business_address_city")) !!}
{!! Form::text("business_address_city", null, ['class' => 'form-control']) !!}
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
{!! Form::label("business_address_code", trans("Public_ViewEvent.business_address_code")) !!}
{!! Form::text("business_address_code", null, ['class' => 'form-control']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><div class="col-md-12">&nbsp;</div></div>
<div class="p20 pl0">
<a href="javascript:void(0);" class="btn btn-primary btn-xs" id="mirror_buyer_info">
@lang("Public_ViewEvent.copy_buyer")
</a>
</div>
<div class="row">
<div class="col-md-12">
<div class="ticket_holders_details" >
<h3>@lang("Public_ViewEvent.ticket_holder_information")</h3>
<?php
$total_attendee_increment = 0;
?>
@foreach($tickets as $ticket)
@for($i=0; $i<=$ticket['qty']-1; $i++)
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">
<b>{{$ticket['ticket']['title']}}</b>: @lang("Public_ViewEvent.ticket_holder_n", ["n"=>$i+1])
</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
{!! Form::label("ticket_holder_first_name[{$i}][{$ticket['ticket']['id']}]", trans("Public_ViewEvent.first_name")) !!}
{!! Form::text("ticket_holder_first_name[{$i}][{$ticket['ticket']['id']}]", null, ['required' => 'required', 'class' => "ticket_holder_first_name.$i.{$ticket['ticket']['id']} ticket_holder_first_name form-control"]) !!}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{!! Form::label("ticket_holder_last_name[{$i}][{$ticket['ticket']['id']}]", trans("Public_ViewEvent.last_name")) !!}
{!! Form::text("ticket_holder_last_name[{$i}][{$ticket['ticket']['id']}]", null, ['required' => 'required', 'class' => "ticket_holder_last_name.$i.{$ticket['ticket']['id']} ticket_holder_last_name form-control"]) !!}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label("ticket_holder_email[{$i}][{$ticket['ticket']['id']}]", trans("Public_ViewEvent.email_address")) !!}
{!! Form::text("ticket_holder_email[{$i}][{$ticket['ticket']['id']}]", null, ['required' => 'required', 'class' => "ticket_holder_email.$i.{$ticket['ticket']['id']} ticket_holder_email form-control"]) !!}
</div>
</div>
@include('Public.ViewEvent.Partials.AttendeeQuestions', ['ticket' => $ticket['ticket'],'attendee_number' => $total_attendee_increment++])
</div>
</div>
</div>
@endfor
@endforeach
</div>
</div>
</div>
<style>
.offline_payment_toggle {
padding: 20px 0;
}
</style>
@if($order_requires_payment)
<h3>@lang("Public_ViewEvent.payment_information")</h3>
@lang("Public_ViewEvent.below_payment_information_header")
@if($event->enable_offline_payments)
<div class="offline_payment_toggle">
<div class="custom-checkbox">
@if($payment_gateway === false)
{{-- Force offline payment if no gateway --}}
<input type="hidden" name="pay_offline" value="1">
<input id="pay_offline" type="checkbox" value="1" checked disabled>
@else
<input data-toggle="toggle" id="pay_offline" name="pay_offline" type="checkbox" value="1">
@endif
<label for="pay_offline">@lang("Public_ViewEvent.pay_using_offline_methods")</label>
</div>
</div>
<div class="offline_payment" style="display: none;">
<h5>@lang("Public_ViewEvent.offline_payment_instructions")</h5>
<div class="well">
{!! Markdown::parse($event->offline_payment_instructions) !!}
</div>
</div>
@endif
@if(@$payment_gateway->is_on_site)
<div class="online_payment">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('card-number', trans("Public_ViewEvent.card_number")) !!}
<input required="required" type="text" autocomplete="off" placeholder="**** **** **** ****" class="form-control card-number" size="20" data-stripe="number">
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="form-group">
{!! Form::label('card-expiry-month', trans("Public_ViewEvent.expiry_month")) !!}
{!! Form::selectRange('card-expiry-month',1,12,null, [
'class' => 'form-control card-expiry-month',
'data-stripe' => 'exp_month'
] ) !!}
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
{!! Form::label('card-expiry-year', trans("Public_ViewEvent.expiry_year")) !!}
{!! Form::selectRange('card-expiry-year',date('Y'),date('Y')+10,null, [
'class' => 'form-control card-expiry-year',
'data-stripe' => 'exp_year'
] ) !!}</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('card-expiry-year', trans("Public_ViewEvent.cvc_number")) !!}
<input required="required" placeholder="***" class="form-control card-cvc" data-stripe="cvc">
</div>
</div>
</div>
</div>
@endif
@endif
@if($event->pre_order_display_message)
<div class="well well-small">
{!! nl2br(e($event->pre_order_display_message)) !!}
</div>
@endif
{!! Form::hidden('is_embedded', $is_embedded) !!}
{!! Form::submit(trans("Public_ViewEvent.checkout_submit"), ['class' => 'btn btn-lg btn-success card-submit', 'style' => 'width:100%;']) !!}
</div>
</div>
</div>
<img src="https://cdn.attendize.com/lg.png" />
</section>
@if(session()->get('message'))
<script>showMessage('{{session()->get('message')}}');</script>
@endif

View File

@ -12,6 +12,7 @@
<h4 class="date-small-title">Дата проведения</h4>
<div class="date-box-wrap">
<ul class="nav nav-pills">
@foreach($ticket_dates as $date =>$ticket)
<li><a class="active" href="#{{$date}}">{{$date}}</a></li>
@endforeach
@ -36,9 +37,9 @@
<tr class="ticket" property="offers" typeof="Offer">
<td>{{$ticket->ticket_date->format('H:i')}}</td>
<td>
<span class="ticket-title semibold" property="name">
{{$ticket->title}}
</span>
<span class="ticket-title semibold" property="name">
{{$ticket->title}}
</span>
<p class="ticket-descripton mb0 text-muted" property="description">
{{$ticket->description}}
</p>
@ -64,25 +65,16 @@
<td style="width:85px;">
@if($ticket->is_paused)
<span class="text-danger">
@lang("Public_ViewEvent.currently_not_on_sale")
</span>
<span class="text-danger">@lang("Public_ViewEvent.currently_not_on_sale")</span>
@else
@if($ticket->sale_status === config('attendize.ticket_status_sold_out'))
<span class="text-danger" property="availability"
content="http://schema.org/SoldOut">
@lang("Public_ViewEvent.sold_out")
</span>
content="http://schema.org/SoldOut">@lang("Public_ViewEvent.sold_out")</span>
@elseif($ticket->sale_status === config('attendize.ticket_status_before_sale_date'))
<span class="text-danger">
@lang("Public_ViewEvent.sales_have_not_started")
</span>
<span class="text-danger">@lang("Public_ViewEvent.sales_have_not_started")</span>
@elseif($ticket->sale_status === config('attendize.ticket_status_after_sale_date'))
<span class="text-danger">
@lang("Public_ViewEvent.sales_have_ended")
</span>
<span class="text-danger">@lang("Public_ViewEvent.sales_have_ended")</span>
@else
{!! Form::hidden('tickets[]', $ticket->id) !!}
<meta property="availability" content="http://schema.org/InStock">

View File

@ -8,4 +8,14 @@
// Home
Breadcrumbs::for('home', function ($trail) {
$trail->push('Home', route('home'));
});
Breadcrumbs::for('category', function ($trail,$category){
$trail->parent('home');
$trail->push($category->name, route('category', $category->id));
});
Breadcrumbs::for('event',function($trail, $event){
$trail->parent('category', $event->category);
$trail->push($event->title,$event->event_url);
});