@extends('client.layouts.client') @section('content') @section('title', $service->name . ' | ' . $platform->name)
| STT | Thao tác | Mã gói | Mã đơn hàng | LINK/UID | Máy chủ | Số lượng | @if ($service->reaction_status === 'on')Cảm xúc | @endif @if ($service->comments_status === 'on')Bình luận | @endif @if ($service->minute_status === 'on')Số phút | @endif @if ($service->time_status === 'on')Số ngày | Còn lại | @endif {{-- @if ($service->posts_status === 'on')Bài viết/Ngày | @endif --}} @if ($service->time_status !== 'on')Ban đầu | Đã tăng | @endifTrạng thái | Giá tiền | Thanh toán | Cập nhật | Thời gian tạo | Ghi chú |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->id }} |
@if (
$order->status !== 'Completed' &&
$order->status !== 'Refunded' &&
$order->status !== 'Cancelled' &&
$order->status !== 'Failed' &&
$order->status !== 'WaitingForRefund' &&
$order->status !== 'WaitingForRefund' &&
$order->status !== 'Failed' &&
$order->status !== 'Partially Refunded' &&
$order->status !== 'Partially Completed'
)
{{-- Hoàn tiền --}}
@if (isset($order->server->action->refund_status) &&
$order->server->action->refund_status === 'on')
@endif
{{-- Hoàn tiền --}}
@if (isset($order->server->action->up_status) &&
$order->server->action->up_status === 'on')
@endif
{{-- Bảo hành --}}
@if (isset($order->server->action->warranty_status) &&
$order->server->action->warranty_status === 'on')
@endif
{{-- Cập nhật --}}
@endif
{{-- bảo hành --}}
@if (isset($order->server->action->renews_status) &&
$order->server->action->renews_status === 'on')
@endif
|
{{ $order->service->package }} | {{ $order->order_code }} | {{ $order->object_id }} | @php $servers = $service->servers->where('domain', request()->getHost())->values(); $index = $servers->search(function($sv) use ($order) { return $sv->id == ($order->object_server ?? $order->server_id); }); @endphp {{ $index !== false ? 'Server ' . ($index + 1) : 'Server?' }} | {{ number_format($order->orderdata()['quantity']) }} | @if ($service->reaction_status === 'on')
|
@endif
@if ($service->comments_status === 'on')
@endif @if ($service->minute_status === 'on') | {{ $order->orderdata()['minute'] }} phút | @endif @if ($service->time_status === 'on'){{ $order->orderdata()['duration'] }} ngày | {{ remainingDays($order->time, $order->remaining, true) }} | @endif {{-- @if ($service->posts_status === 'on'){{ $order->posts ?? 0 }}/{{ $order->orderdata()['posts'] }} | @endif --}} @if ($service->time_status !== 'on'){{ number_format((float) $order->start) }} | {{ number_format((float) $order->buff) }} | @endif{!! statusOrder($order->status, true) !!} | {{ $order->price }} đ | {{ number_format((float) $order->payment) }} đ | {{ $order->updated_at->diffForHumans() }} | {{ $order->created_at }} |