@extends('frontend.layouts.main-profile') @section('title', $seo['title'] ?? '' ) @section('keywords', $seo['keywords']??'') @section('description', $seo['description']??'') @section('abstract', $seo['abstract']??'') @section('image', $seo['image']??'') @section('css') @endsection @section('content')
@if(session("alert"))
{{session("alert")}}
@elseif(session('error'))
{{session("error")}}
@endif @if (!empty($data) && $data->isNotEmpty())
{{ __('common.Tour bạn đã mua trong thời gian qua') }}
@if(isset($data) && $data) @foreach($data as $transaction) @foreach($transaction->orders as $key => $value) @if($key ==0 )
Mã đơn hàng: {{$transaction->code ?? ''}}
@if ($transaction->httt) {{ $transaction->httt }} ({{$transaction->thanhtoan == 1 ? 'Đã thanh toán' : 'Chưa thanh toán' }}) @endif
{{$value->created_at->format('d/m/Y')}}
@foreach ($listStatus as $status) @if ($status['status']==$transaction->status) {{$status['name'] }} @endif @endforeach
Số lượng: {{$transaction->quantity}}
Tổng tiền: {{number_format($transaction->total, 0, ',','.')}} đ
{{ __('common.Chi tiết') }} @if ($transaction->status == 1 ) {{ __('common.Hủy đơn') }} @endif
@endif @endforeach @endforeach @endif {{$data->appends(request()->all())->links()}}
@else

Chưa có đơn hàng nào!

@endif
@endsection @section('js') @endsection