@extends('backend.layout') @section('content')
{{ session()->get('course_status_warning') }}
{{ __('Title') }} | {{ __('Tickets Available') }} | {{ __('Price') }} | {{ __('Actions') }} | |
---|---|---|---|---|
@php $ticket_content = App\Models\Event\TicketContent::where([['language_id', $information['language']['id']], ['ticket_id', $ticket->id]])->first(); if (empty($ticket_content)) { $ticket_content = App\Models\Event\TicketContent::where('ticket_id', $ticket->id)->first(); } @endphp {{ @$ticket_content->title }} | @if ($ticket->pricing_type == 'variation') @php $variation = json_decode($ticket->variations, true); @endphp @foreach ($variation as $v) @if ($v['ticket_available_type'] == 'unlimited') {{ __('Unlimited') }} @else {{ $v['ticket_available'] }} @endif @if (!$loop->last) , @endif @endforeach @else @if ($ticket->ticket_available_type == 'unlimited') {{ $ticket->ticket_available_type }} @else {{ $ticket->ticket_available }} @endif @endif |
@if ($ticket->pricing_type == 'normal')
@if ($ticket->early_bird_discount == 'enable')
@php
$discount_date = Carbon\Carbon::parse($ticket->early_bird_discount_date . $ticket->early_bird_discount_time);
@endphp
@if ($ticket->early_bird_discount_type == 'fixed' && !$discount_date->isPast())
@php
$calculate_price = $ticket->price - $ticket->early_bird_discount_amount;
@endphp
{{ symbolPrice($calculate_price) }}
|
|