@extends('layouts.app') @section('title', 'WooCommerce Notifications') @push('head') @endpush @section('content')

WooCommerce Notifications

@forelse($notifications as $notification) @empty @endforelse
Order Customer Type Status Sent At Status Response Actions
{{ $notification->order->order_number ?? 'N/A' }}
WC ID: {{ $notification->order->woocommerce_order_id ?? 'N/A' }}
{{ $notification->order->customer_name ?? 'N/A' }} @if($notification->order->customer_email && $notification->order->customer_email !== 'N/A')
{{ $notification->order->customer_email }} @endif @if($notification->order->customer_phone && $notification->order->customer_phone !== 'N/A')
{{ $notification->order->customer_phone }} @endif
{{ $notification->notification_type_label }} {{ $notification->status_label }} {{ $notification->formatted_sent_date }} @if($notification->response && isset($notification->response['error'])) {{ $notification->response['error']['message'] ?? 'Error' }} @elseif($notification->response && isset($notification->response['messages'])) Message ID: {{ $notification->response['messages'][0]['id'] ?? 'N/A' }} @else No response data @endif @if($notification->isFailed()) @endif
No notifications found
@if($notifications instanceof \Illuminate\Pagination\LengthAwarePaginator && $notifications->hasPages())
{{ $notifications->links() }}
@endif
@push('scripts') @endpush @endsection