@extends('admin.layout') @section('title', 'Pedidos') @section('page-title', 'Siparişler') @section('content')
Tüm siparişler, kim ne almış ve toplam tutarlar.
| Fatura No | Tarih | Kullanıcı | Alınan ürünler | Ara Toplam | İndirim | Toplam | Kupon |
|---|---|---|---|---|---|---|---|
{{ $order->invoice_number ?? 'S#' . $order->id }}
|
{{ $order->created_at->format('d.m.Y H:i') }} |
{{ $order->user->name ?? '' }} {{ $order->user->last_name ?? '' }}
{{ $order->user->email ?? '-' }} |
@forelse($order->purchases as $p)
@php
$label = match($p->purchase_type) {
'package' => $p->package ? $p->package->name : 'Paket',
'subscription' => 'Suscripción' . ($p->subscription_plan ? ' (' . match($p->subscription_plan) { 'monthly' => 'Mensual', 'six_months' => '6 Meses', 'yearly' => '12 Meses', default => $p->subscription_plan } . ')' : ''),
'single_chat' => 'Chat (' . number_format($p->chat_words_added ?? 0) . ' Token)',
'single_report' => 'Rapor hakkı',
'single_comment_tokens' => 'Yorum token',
default => $p->purchase_type,
};
@endphp
{{ $label }}
({{ number_format($p->amount_paid, 0, ',', '.') }} ₺)
@if(!$loop->last) @endif @empty — @endforelse |
{{ number_format($order->subtotal, 0, ',', '.') }} ₺ | @if($order->discount_amount > 0) -{{ number_format($order->discount_amount, 0, ',', '.') }} ₺ @else — @endif | {{ number_format($order->total, 0, ',', '.') }} ₺ |
@if($order->coupon_code)
{{ $order->coupon_code }}
@if($order->coupon)
{{ $order->coupon->name }} @endif @else — @endif |
Henüz sipariş bulunmamaktadır.