@extends('layouts.app') @section('title', 'Commandes en Attente') @section('content')
{{ $pendingOrders->count() }} commande(s) en attente
Toutes les commandes ont été traitées avec succès
Ajouter une Nouvelle Commande|
|
# | Client | Téléphone | Ville | Produit | Qté | Prix | Total | Date | Actions |
|---|---|---|---|---|---|---|---|---|---|---|
|
|
{{ $index + 1 }} |
{{ $order->structured_data['Nom du client'] ?? $order->structured_data['client_name'] ?? 'N/A' }}
|
{{ $order->structured_data['Téléphone'] ?? $order->structured_data['client_phone'] ?? 'N/A' }}
|
{{ $order->structured_data['Ville'] ?? $order->structured_data['city'] ?? 'N/A' }}
|
{{ $order->structured_data['products'] ?? $order->structured_data['product_name'] ?? 'N/A' }}
|
{{ $order->structured_data['quantite'] ?? $order->structured_data['quantity'] ?? 1 }} | {{ number_format($order->structured_data['Prix'] ?? $order->structured_data['price'] ?? 0, 2) }} DH | {{ number_format($order->structured_data['Total'] ?? (($order->structured_data['Prix'] ?? 0) * ($order->structured_data['quantite'] ?? 1)), 2) }} DH |
{{ $order->created_at->format('d/m/Y') }}
{{ $order->created_at->format('H:i') }} |