@extends('layouts.front-end.body') @section('content')

{{ $package->customer_vip->title ?? '' }}

@if ($package->customer_vip->order ?? 0) {{ $package->customer_vip->order ?? 0 }} {{ __('message.order') }} @endif

{{ $order_time ?? null }}

{{ __('message.finish') }}

{{ $all_orders ?? 0 }}

{{ __('message.all') }}

{{ ($all_orders ?? 0) - ($order_time ?? 0) }}

{{ __('message.not finished yet') }}
{{ __('message.order time') }}

{{ $order_time ?? 0 }}

{{ __('message.current store') }}

{{ $package_vip ?? null }}

{{ __('message.earn commission') }}

{{ isset($commission) ? $commission : '' }}

{{ __('message.amount of money that can be used') }}

{{ isset($credit_balance) ? $credit_balance : '0' }}

{{--
--}}
@if (count($products))

{{ __('message.products') }}

@endif @foreach ($products as $k => $val) @if (isset($product)) {{--

{{ isset($product->product_title) ? $product->product_title : '-' }}

ยอดสั่งซื้อ

{{ isset($product->price) ? number_format($val->percentage_price,2) : '0.00' }} THB


กำไร

{{ isset($product->commission->price) ? number_format($product->commission->price,2) : '0.00' }} THB

--}}
Product Image
{{ isset($product->product_title) ? $product->product_title : '-' }}
@for ($i = 1; $i <= 5; $i++) @if ($i <= $product->rating_star) @else @endif @endfor
{{ __('message.price') }}:
{{ isset($product->price) ? number_format($product->price, 2) : '0.00' }} THB
{{--
{{__('message.commission')}}:
{{ isset($product->commission->price) ? number_format($product->commission->price,2) : '0.00' }} THB
--}}
@endif @endforeach
@if ($pending_order) @if ($pending_order->product_id) @else @endif @endif
@endsection @section('meta') {{ __('message.order') }} @endsection