@extends('layouts.user') @section('page-title', __('Order') . ' ' . $order->code) @section('content')

{{ __('Order Code') }}

{{ $order->code }}

{{ ucfirst(str_replace('_', ' ', $order->status)) }}

{{ __('Service') }}

{{ $order->service->name }}

{{ __('Link') }}

{{ $order->link }}

{{ __('Quantity') }}

{{ number_format($order->quantity) }}

{{ __('Charge') }}

{{ currency($order->charge) }}

{{ __('Start Count') }}

{{ number_format((float) $order->start_count) }}

{{ __('Remains') }}

{{ number_format((float) ($order->remains ?? 0)) }}

{{ __('Avg. Time') }}

{{ $order->service->formattedAvgTime() }}

{{ __('Date') }}

{{ $order->created_at->format('M d, Y H:i') }}

@if($order->canRefill() || $order->canCancel())
@if($order->canRefill())
@csrf
@endif @if($order->canCancel())
@csrf
@endif
@endif

{{ __('Order Timeline') }}

@forelse($order->logs as $log)

{{ ucfirst(str_replace('_', ' ', $log->status)) }}

{{ $log->created_at->format('M d, Y H:i') }} ยท {{ $log->note }}

@empty

{{ __('No activity yet') }}

@endforelse
@endsection