@use('App\Models\Currency')
@livewire('manage-transaction-form', [ 'portfolio' => $portfolio, 'symbol' => $holding->market_data->symbol, ]) @livewire('holding-options-form', [ 'holding' => $holding ]) {{ $portfolio->title }} ยป {{ $holding->market_data->symbol }} @can('fullAccess', $portfolio) @else @endcan @can('fullAccess', $portfolio) @endcan
{{ $holding->market_data->symbol }} {{ $holding->market_data->name }} @livewire('holding-market-data', ['holding' => $holding]) @if(!empty($holding->market_data->market_cap))

{{ __('Market Cap') }}: {{ Currency::forHumans($holding->market_data->market_cap, $holding->market_data->currency) }}

@endif @if(!empty($holding->market_data->forward_pe))

{{ __('Forward PE') }}: {{ $holding->market_data->forward_pe }}

@endif @if(!empty($holding->market_data->trailing_pe))

{{ __('Trailing PE') }}: {{ $holding->market_data->trailing_pe }}

@endif @if(!empty($holding->market_data->book_value))

{{ __('Book Value') }}: {{ Number::currency($holding->market_data->book_value, $holding->market_data->currency) }}

@endif

{{ __('52 week') }}:

@if(!empty($holding->market_data->dividend_yield))

{{ __('Dividend Yield') }}: {{ Number::percentage( $holding->market_data->dividend_yield, $holding->market_data->dividend_yield < 1 ? 2 : 0 ) }}

@endif @if(!empty($holding->market_data->last_dividend_date))

{{ __('Last Dividend Paid') }}: {{ $holding->market_data->last_dividend_date->format('F d, Y') }}

@endif
@livewire('transactions-list', [ 'portfolio' => $holding->portfolio, 'transactions' => $holding->transactions, 'shouldGoToHolding' => false ]) @if($holding->dividends->isEmpty())
{{ __('No dividends for :symbol yet', ['symbol' => $holding->symbol]) }}
@endif @livewire('holding-dividends-list', ['holding' => $holding])
@if($holding->splits->isEmpty())
{{ __('No splits for :symbol yet', ['symbol' => $holding->symbol]) }}
@endif @foreach ($holding->splits->take(5) as $split) 1:{{ $split->split_amount }} {{ $split->date->format('F d, Y') }} @endforeach
@if(config('services.ai_chat_enabled')) @livewire('ui.ai-chat-window', [ 'chatable' => $holding, 'suggested_prompts' => [ [ 'text' => 'What are the key risks?', 'value' => 'What are the key risks for the holding?' ], [ 'text' => 'Should I invest more?', 'value' => 'Is it worthwhile to invest more?' ], [ 'text' => 'Should I sell?', 'value' => 'When would be a good time for me to sell?' ], [ 'text' => 'What are the key strengths?', 'value' => 'Can you tell me the key strengths for this holding?' ], [ 'text' => 'Is this a successful position?', 'value' => 'Is this a successful holding in my portfolio?' ] ], ]) @endif