@extends('admin.layout') @section('title', 'Quản lý đơn hàng') @section('greeting') QUẢN LÝ ĐƠN HÀNG @endsection @section('subtitle') Theo dõi và xử lý các đơn hàng @endsection @section('content')

Đơn hàng ({{ $orders->total() }})

@forelse($orders as $order) @empty @endforelse
IDUserGóiSố tiềnNội dung CKTrạng tháiNgày tạoActions
#{{ $order->id }} {{ $order->username }} {{ strtoupper($order->plan_id) }} {{ number_format($order->amount) }}đ {{ $order->transfer_content }} @if($order->status === 'completed') Completed @elseif($order->status === 'pending') Pending @else Mismatch@endif {{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:i') }}
@if($order->status !== 'completed')
@csrf @method('PUT')
@endif @if($order->status === 'completed')
@csrf @method('PUT')
@csrf @method('DELETE')
@endif
Không có đơn hàng.
{{ $orders->links('admin.pagination') }}
@endsection