@extends('frontend.layouts.main') @section('title', $seo['title'] ?? '') @section('keywords', $seo['keywords'] ?? '') @section('description', $seo['description'] ?? '') @section('abstract', $seo['abstract'] ?? '') @section('image', asset($seo['image'] ?? '')) @section('css') @endsection @php $nextPageUrl = $data->nextPageUrl(); $previousPageUrl = $data->previousPageUrl(); $page = request()->input('page'); @endphp @section('canonical') @endsection @if (request()->has('page') && ($page == 1 || $page == 2)) @section('prevPage') @endsection @else @if ($previousPageUrl) @section('prevPage') @endsection @endif @endif @if ($nextPageUrl) @section('nextPage') @endsection @endif @section('content')
@isset($breadcrumbs,$typeBreadcrumb) @include('frontend.components.breadcrumbs',[ 'breadcrumbs'=>$breadcrumbs, 'type'=>$typeBreadcrumb, ]) @endisset
{{--
{{ __('common.Giờ tàu') }} & {{ __('common.Giá vé') }}
({{ __('common.ticket_price_apply') }} {{ date('d/m/Y') }})
@foreach ($data as $item) @endforeach
ST {{ __('common.itinerary') }} {{ __('common.publish_fare') }} / {{ __('common.bed')}} / {{ __('common.pax') }}
VIP
(Cabin 2 {{ __('common.bed')}})
Deluxe
(Cabin 4 {{ __('common.bed')}})
{{ $loop->index + 1 }} {{ $item->name }}
@if ($item->trainRoutes->isNotEmpty()) ({{ __('common.train') }} {{ $item->trainRoutes->pluck('train_code')->implode('/') }}) @endif
@if ($item->vip_price > 0) {{ number_format($item->vip_price) }} {{ $unit }} @else {{ __('common.contact') }} @endif @if ($item->deluxe_price > 0) {{ number_format($item->deluxe_price) }} {{ $unit }} @else {{ __('common.contact') }} @endif
--}}
@foreach($data as $ticketPrice)
{{ $ticketPrice->name }}
@if ($ticketPrice->trainRoutes->isNotEmpty())
    @foreach ($ticketPrice->trainRoutes as $trainRoute)
  • {{ \Carbon\Carbon::parse($trainRoute->departure_time)->format('H:i') }}
  • @endforeach
@endif

{{ $ticketPrice->name }}

{!! $ticketPrice->description !!}
@if ($ticketPrice->vip_price > 0)

{{ __('common.Vé tàu Vip') }}

{{ number_format($ticketPrice->vip_price) }} {{ $unit }}
@endif @if ($ticketPrice->deluxe_price > 0)

{{ __('common.Vé tàu Deluxe') }}

{{ number_format($ticketPrice->deluxe_price) }} {{ $unit }}
@endif
@endforeach
@if ($data->lastPage() > 1) @endif
@endsection @section('js') @endsection