@extends('layouts.app')
@section('content')
-
{!! link_to_route('profile.show', __('user.profile'), [], ['class' => 'nav-link'.(Request::segment(1) == 'profile' ? ' active' : '')]) !!}
-
{!! link_to_route('masjid_profile.show', __('masjid_profile.masjid_profile'), [], ['class' => 'nav-link'.(Request::segment(1) == 'masjid_profile' ? ' active' : '')]) !!}
-
{!! link_to_route('password.change', __('auth.change_password'), [], ['class' => 'nav-link'.(Request::segment(1) == 'change-password' ? ' active' : '')]) !!}
@if (Route::has('lecturings.index'))
@can('view-any', new App\Models\Lecturing)
-
{!! link_to_route('lecturings.index', __('lecturing.lecturing'), [], ['class' => 'nav-link'.(in_array(Request::segment(1), ['lecturings', 'friday_lecturings']) ? ' active' : '')]) !!}
@endcan
@endif
@can('view-any', new App\Models\BankAccount)
-
{!! link_to_route('bank_accounts.index', __('bank_account.bank_account'), [], ['class' => 'nav-link'.(Request::segment(1) == 'bank_accounts' ? ' active' : '')]) !!}
@endcan
@can('view-any', new App\Models\Category)
-
{!! link_to_route('categories.index', __('category.category'), [], ['class' => 'nav-link'.(Request::segment(1) == 'categories' ? ' active' : '')]) !!}
@endcan
@can('view-any', new App\Models\Book)
-
{!! link_to_route('books.index', __('book.book'), [], ['class' => 'nav-link'.(Request::segment(1) == 'books' ? ' active' : '')]) !!}
@endcan
@can('view-any', new App\User)
-
{!! link_to_route('users.index', __('user.user'), [], ['class' => 'nav-link'.(Request::segment(1) == 'users' ? ' active' : '')]) !!}
@endcan
@can('manage_database_backup')
-
{!! link_to_route('database_backups.index', __('database_backup.list'), [], ['class' => 'nav-link'.(Request::segment(1) == 'database_backups' ? ' active' : '')]) !!}
@endcan
-
{!! link_to_route('system_info.index', __('settings.system_info'), [], ['class' => 'nav-link'.(Request::segment(1) == 'system_info' ? ' active' : '')]) !!}
@yield('content_settings')
@endsection