@extends('layouts.frontend-member') @section('title', 'BuySell') @section('content')

ซื้อขาย ประวัติซื้อขาย

{{--
@forelse ($listBuySells as $index => $buySell) @empty
ยังไม่มีประวัติ hold a position
@endforelse
# Date Product Direction Gain/Loss Status Amount
{{ $index + 1 }} {{ $buySell->created_at->format('d/m/Y H:i') }} {{ $buySell->product->name ?? '' }} @if ($buySell->direction == 'up') {{ __('message.buy up') }} @else {{ __('message.buy down') }} @endif @if ($buySell->status == 0) {{ __('message.pending') }} @elseif($buySell->status == 1) {{ __('message.profit') }} @else {{ __('message.lose') }} @endif {{ $setting_->currency_name }} {{ number_format(abs($buySell->amount), 2) }}
--}}
    @forelse ($listBuySells as $index => $buySell)
  • {{ $buySell->product->name ?? '' }}

    • @if($buySell->direction=='up')   ขึ้น   @else   ลง   @endif
    • ราคาซื้อ {{ number_format($buySell->closing_point, 2) }}
      ราคา Open Position -{{ number_format($buySell->opening_point, 2) }}
    • มูลค่าการซื้อขาย: {{ number_format($buySell->profit, 2) }}{{ $setting_->currency_name }}
      {{ $buySell->created_at->format('d/m/Y H:i') }}