@extends('layouts.frontend-member') @section('title', __('message.report')) @section('content')
{{__('message.report')}} @include('frontend.inc.change-language')
{{__('message.amount')}}
{{__('message.product')}}
{{__('message.profit')}}
{{__('message.created date')}}
@forelse ($buySells as $buySell)
{{ number_format(abs($buySell->amount),2) }}


{{$setting_->currency_name}}
@if($buySell->direction=='up') {{__('message.buy up')}} @else {{__('message.buy down')}} @endif
{{$buySell->product->name??''}}
@if($buySell->status==0) {{-- {{__('message.pending')}} --}} @elseif($buySell->status==1) {{__('message.profit')}} @else {{__('message.lose')}} @endif
@if($buySell->status!=0) @if($buySell->profit>$buySell->amount) {{ number_format(abs($buySell->profit-$buySell->amount),2) }} @else {{ number_format(abs($buySell->profit-$buySell->amount),2) }} @endif @endif
{{ $buySell->created_at->format('d/m/Y H:i') }}
@empty

@endforelse {{ $buySells->appends($_GET)->links() }}
@include('app.sweetAlert') @endsection