Files
investbrain/resources/views/components/partials/side-bar.blade.php
T

53 lines
2.1 KiB
PHP
Raw Normal View History

2024-08-01 13:53:10 -05:00
<x-menu activate-by-route>
2024-08-15 21:35:43 -05:00
<x-menu-item title="{{ __('Dashboard') }}" icon="o-home" link="{{ route('dashboard') }}" />
2024-08-01 13:53:10 -05:00
<x-menu-sub title="{{ __('Portfolios') }}" icon="o-document-duplicate">
@foreach (auth()->user()->portfolios as $portfolio)
2024-08-15 21:35:43 -05:00
<x-menu-item icon="o-document" link="{{ route('portfolio.show', ['portfolio' => $portfolio->id ]) }}" >
2024-08-06 22:59:17 -05:00
<x-slot:title>
{{ $portfolio->title }}
@if($portfolio->wishlist)
2024-08-15 21:35:43 -05:00
<x-badge value="{{ __('Wishlist') }}" class="badge-secondary badge-sm ml-2" />
2024-08-06 22:59:17 -05:00
@endif
</x-slot:title>
</x-menu-item>
2024-08-01 13:53:10 -05:00
@endforeach
2024-08-15 21:35:43 -05:00
<x-menu-item title="{{ __('Create Portfolio') }}" icon="o-document-plus" link="{{ route('portfolio.create') }}" />
2024-08-01 13:53:10 -05:00
</x-menu-sub>
2024-08-26 19:49:43 -05:00
<x-menu-item title="{{ __('Transactions') }}" icon="o-banknotes" link="{{ route('transaction.index') }}" />
2024-08-15 21:35:43 -05:00
{{-- <x-menu-item title="{{ __('Reporting') }}" icon="o-chart-bar-square" link="####" /> --}}
2024-08-01 13:53:10 -05:00
</x-menu>
</div>
2024-10-20 10:06:06 -05:00
<div class="px-3">
2024-08-01 13:53:10 -05:00
<x-section-border />
2024-08-01 13:53:10 -05:00
@php
$user = auth()->user();
@endphp
2024-10-20 10:06:06 -05:00
<x-list-item :item="$user" avatar="profile_photo_url" value="name" sub-value="email" no-separator no-hover class="mb-3 !-mt-3 rounded">
2024-08-01 13:53:10 -05:00
<x-slot:actions>
<x-dropdown>
<x-slot:trigger>
<x-button icon="o-cog-6-tooth" class="btn-circle btn-ghost btn-xs" />
</x-slot:trigger>
<x-menu-item title="{{ __('Manage Profile') }}" icon="o-user" link="{{ @route('profile.show') }}" />
2024-08-07 18:29:23 -05:00
<x-menu-item title="{{ __('Import / Export Data') }}" icon="o-cloud-arrow-down" link="{{ @route('import-export') }}" />
2024-08-01 13:53:10 -05:00
2024-10-20 10:06:06 -05:00
<x-section-border class="py-1" />
2024-08-01 13:53:10 -05:00
2024-08-22 22:44:52 -05:00
<x-menu-item title="{{ __('Log Out') }}" icon="o-power" onclick="event.preventDefault(); document.getElementById('logout').submit();" />
2024-08-01 13:53:10 -05:00
<form id="logout" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
</x-dropdown>
</x-slot:actions>
</x-list-item>