@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',[ 'title'=> __('Dashboard'), 'buttons'=>[ [ 'name'=> __('Orders'), 'url'=>route('admin.order.index'), ] ] ]) @endsection @section('content')
{{ $order->status == 2 ? 'pending' : ($order->status == 1 ? 'approved' : 'declined') }}

{{ __('Invoice') }}

Order {{ $order->invoice_no }}

{{ __('Billed To:') }}
{{ __('Name: ') }} {{ $order->user->name ?? ''}}
{{ __('Address: ') }} {{ $order->user->address ?? '' }}
{{ __('Email: ') }} {{ $order->user->email ?? '' }}
{{ __('Phone: ') }} {{ $order->user->phone ?? '' }}
{{ __('Billed From:') }}
{{ $invoice_data->company_name }}
{{ $invoice_data->address }}
{{ $invoice_data->city }}
{{ $invoice_data->post_code }}
{{ $invoice_data->country }}
{{ __('Payment Method:') }}
{{ __('Name:') }} {{ $order->gateway->name ?? '' }}
{{ __('Pay Id:') }} {{ $order->payment_id ?? '' }}
{{ __('Order Date:') }} {{ $order->created_at->format('F d Y') }}
{{ __('Expire Date') }}: {{ Carbon\Carbon::parse($order->will_expire)->format('F d Y') }}
{{ __('Subscription Plan Name') }} {{ __('Amount') }}
- {{ $order->plan->title ?? '' }} {{ amount_format($order->amount,'name') }}
@if(!empty($order->meta)) @php $meta = json_decode($order->meta ?? ''); @endphp
{{ __('Payment Info:') }}

{{ $meta->comment ?? '' }}

{{ __('Attachment') }}

@endif
{{ __('Subtotal: ') }} {{ amount_format($order->amount,'name') }}
{{ __('Tax: ') }} {{ amount_format($order->tax,'name') }}

{{ __('Total: ') }} {{ amount_format($order->tax+$order->amount,'name') }}

@csrf @method('PUT')

@endsection