@extends('layouts.app') @section('content')

Profit Summary

Daily transaction profit and all-time total profit.

Daily Exchange Profit
{{ number_format($dailyExchangeProfit, 4) }}
Daily Total Profit
{{ number_format($dailyTotalProfit, 4) }}
Total Profit
{{ number_format((float) $totalProfit, 4) }}

Transaction-wise Profit

@forelse($transactions as $transaction) @empty @endforelse
Date Type Currency Quantity Rate Exchange Profit Total Profit
{{ $transaction->created_at->format('Y-m-d H:i') }} {{ $transaction->type }} {{ $transaction->currency->code }} {{ number_format((float) $transaction->quantity, 4) }} {{ number_format((float) $transaction->rate, 4) }} {{ number_format((float) $transaction->exchange_profit, 4) }} {{ number_format((float) $transaction->total_profit, 4) }}
No transactions found for this date.
@endsection