Files
investbrain/app/Http/Controllers/PortfolioController.php
T
hackerESQ eb260b2990 adds
test dashboard data
2024-08-06 22:59:17 -05:00

33 lines
723 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Portfolio;
class PortfolioController extends Controller
{
/**
* Show the form for creating a new resource.
*/
public function create()
{
return view('portfolio.create');
}
/**
* Display the specified resource.
*/
public function show(Portfolio $portfolio)
{
$portfolio->marketGainLoss = rand(-200, 3999);
$portfolio->totalCostBasis = rand(-200, 3999);
$portfolio->totalMarketValue = rand(-200, 3999);
$portfolio->realizedGainLoss = rand(-200, 3999);
$portfolio->dividendsEarned = rand(-200, 3999);
return view('portfolio.show', compact('portfolio'));
}
}