@extends('user.layouts') @section('css') @endsection @section('content')

{{trans('home.invoices')}}

@if($prepaidPlan)
@endif
@foreach($orderList as $order) @endforeach
# {{trans('home.invoice_table_id')}} {{trans('home.invoice_table_name')}} {{trans('home.invoice_table_pay_way')}} {{trans('home.invoice_table_price')}} {{trans('home.invoice_table_create_date')}} {{trans('home.invoice_table_expired_at')}} {{trans('home.invoice_table_status')}} {{trans('home.invoice_table_actions')}}
{{$loop->iteration}} {{$order->order_sn}} {{$order->goods->name ?? ($order->goods_id === 0 ? '余额充值': trans('home.invoice_table_goods_deleted'))}} {{$order->pay_way === 1 ? trans('home.service_pay_button') : trans('home.online_pay')}} ¥{{$order->amount}} {{$order->created_at}} {{empty($order->goods) || $order->goods_id === 0 || $order->status === 3 ? '' : $order->expired_at}} @switch($order->status) @case(-1) {{trans('home.invoice_status_closed')}} @break @case(0) {{trans('home.invoice_status_wait_payment')}} @break @case(1) {{trans('home.invoice_status_wait_confirm')}} @break @case(2) @if ($order->goods_id === 0) {{trans('home.invoice_status_payment_confirm')}} @else @if($order->is_expire) {{trans('home.invoice_table_expired')}} @else {{trans('home.invoice_table_active')}} @endif @endif @break @case(3) {{trans('home.invoice_table_prepay')}} @break @endswitch
@if($order->status === 0 && $order->payment) @if($order->payment->qr_code) {{trans('home.pay')}} @elseif($order->payment->url) {{trans('home.pay')}} @endif @elseif ($order->status === 1) @endif
@endsection @section('script') @endsection