@section('title', '- Your Transactions') @extends('layouts.user-profile') @section('breadcumb') @include('layouts.partials.breadcumb', ['page' => 'Transactions']) @endsection @section('section-body') @foreach ($transactions as $transaction) @php if ($transaction->type == 'buy') { $coin = 'USD'; } else { $coin = 'eBits'; } @endphp @if ($transaction->currency_buy) @elseif($transaction->type == 'discharge' || $transaction->type == 'trade') @else @endif @if ($transaction->currency_buy) @else @endif @if ($transaction->type == 'discharge') @elseif($transaction->type == 'trade') @else @endif @endforeach
@lang("profile.date") @lang("profile.type") @lang("profile.fromwallet") @lang("profile.amount") @lang("profile.commission") @lang("profile.amount_recive") @lang("profile.status")
{{ date('Y-m-d', strtotime($transaction->created_at)) }} {{ ucfirst($transaction->type) }}{{ $transaction->currency_buy->symbol }}eBitUSD{{ $transaction->total_to_paid }}{{ number_format((float) $transaction->amount, 2, '.', '') }}{{ number_format((float) $transaction->fee, 2, '.', '') }}{{ number_format((float) $transaction->total_ebits_equivalence, 2, '.', '') }} USD {{ $transaction->currency_destination->cryptocoin ? number_format($transaction->trade_amount, 19) : $transaction->trade_amount }} {{ $transaction->currency_destination->symbol }} {{ number_format((float) $transaction->total_ebits_equivalence, 2, '.', '') }} {{ $transaction->currency->symbol }} {{ ucfirst($transaction->status) }}
@endsection @push('css') @endpush @push('js') @endpush