File manager - Edit - /var/www/payraty/accounting_main/resources/views/partials/admin/menu.blade.php
Back
@php use App\Models\Utility; $logo = Utility::getOrganisationLogo(); if (\Auth::user()->type == 'super admin') { $company_logo = Utility::get_superadmin_logo(); } else { $company_logo = Utility::get_company_logo(); } $mode_setting = \App\Models\Utility::getLayoutsSetting(); $emailTemplate = App\Models\EmailTemplate::first(); @endphp {{-- @if ((isset($setting['cust_theme_bg']) && $setting['cust_theme_bg'] == 'on') || env('SITE_RTL') == 'on') --}} {{-- <nav class="dash-sidebar light-sidebar transprent-bg"> --}} {{-- @else --}} {{-- <nav class="dash-sidebar light-sidebar"> --}} {{-- @endif --}} <nav class="dash-sidebar light-sidebar {{ isset($mode_setting['cust_theme_bg']) && $mode_setting['cust_theme_bg'] == 'on' ? 'transprent-bg' : '' }}"> <div class="navbar-wrapper"> <div class="m-header main-logo"> <a href="#" class="b-brand"> @php $user = \DB::table('users')->where('id', \Auth::id())->first(); $organisation = $user ? \DB::table('organisations')->where('id', $user->organisation_id)->first() : null; $logoPath = $organisation && $organisation->logo ? $organisation->logo : asset('assets/images/payraty-logo.png'); @endphp <img src="{{ $logoPath }}" alt="{{ config('app.name', 'Payraty') }}" class="logo logo-lg"> </a> </div> <div class="navbar-content"> <ul class="dash-navbar"> {{-- ------- Dashboard ---------- --}} <li class="dash-item "> {{-- @can('show dashboard') --}} @if (\Auth::guard('customer')->check()) <a href="{{ route('customer.dashboard') }}" class="dash-link {{ Request::route()->getName() == 'customer.dashboard' ? ' active' : '' }}"> <img src="{{ asset('assets/images/svg/dashboard.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Dashboard') }}</span> </a> @elseif(\Auth::guard('vender')->check()) <a href="{{ route('vender.dashboard') }}" class="dash-link {{ Request::route()->getName() == 'vender.dashboard' ? ' active' : '' }}"> <img src="{{ asset('assets/images/svg/dashboard.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Dashboard') }}</span> </a> @else <div class="custom-icon"> <a href="{{ route('dashboard') }}" class="dash-link {{ Request::route()->getName() == 'dashboard' ? ' active' : '' }}"> <img src="{{ asset('assets/images/svg/dashboard.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Dashboard') }}</span> </a> </div> @endif {{-- @endcan --}} </li> @if (Gate::check('manage customer proposal')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'customer.proposal' || Request::segment(1) == 'customer.retainer' ? ' active dash-trigger' : '' }}"> <div> </div> <a href="#!" class="dash-link "> <img src="{{ asset('assets/images/svg/presale.svg') }}" class="w-4 h-4 mr-2 icon" alt="dashboard" /></span><span class="dash-mtext">{{ __('Presale') }}</span> <span class="dash-arrow"> <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'customer.proposal' || Request::segment(1) == 'customer.retainer' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'customer.proposal' || Request::segment(1) == 'customer.retainer' ? 'show' : '' }}"> @can('manage customer proposal') <li class="dash-item {{ Request::route()->getName() == 'customer.proposal' || Request::route()->getName() == 'customer.proposal.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('customer.proposal') }}">{{ __('Proposal') }}</a> </li> @endcan @can('manage customer proposal') <li class="dash-item {{ Request::route()->getName() == 'customer.retainer' || Request::route()->getName() == 'customer.retainer.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('customer.retainer') }}">{{ __('Retainers') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Customer Proposal ---------- --}} <!-- @can('manage customer proposal') <li class="dash-item {{ Request::route()->getName() == 'customer.proposal' || Request::route()->getName() == 'customer.proposal.show' ? ' active' : '' }} "> <a href="{{ route('customer.proposal') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-receipt"></i></span> <span class="dash-mtext">{{ __('Proposal') }}</span> </a> </li> @endcan --> {{-- ------- Customer Retainer ---------- --}} {{-- <!-- @can('manage customer proposal') <li class="dash-item {{ (Request::route()->getName() == 'customer.retainer' || Request::route()->getName() == 'customer.retainer.show') ? ' active' : '' }} "> <a href="{{ route('customer.retainer') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-receipt"></i></span> <span class="dash-mtext">{{__('Retainer')}}</span> </a> </li> @endcan --> --}} {{-- ------- Customer Invoice ---------- --}} @can('manage customer invoice') <li class="dash-item {{ Request::route()->getName() == 'customer.invoice' || Request::route()->getName() == 'customer.invoice.show' ? ' active' : '' }} "> <div class="custom-icon"> <a href="{{ route('customer.invoice') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/income.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Invoice') }}</span> </a> </div> </li> @endcan {{-- ------- Customer Payment ---------- --}} @can('manage customer payment') <li class="dash-item {{ Request::route()->getName() == 'customer.payment' ? ' active' : '' }} "> <a href="{{ route('customer.payment') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-file-invoice"></i></span> <span class="dash-mtext">{{ __('Payment') }}</span> </a> </li> @endcan {{-- ------- Customer Transaction ---------- --}} @can('manage customer transaction') <li class="dash-item {{ Request::route()->getName() == 'customer.transaction' ? ' active' : '' }}"> <a href="{{ route('customer.transaction') }}" class="dash-link"> <span class="dash-micon"><i class="ti ti-history"></i></span> <span class="dash-mtext">{{ __('Transaction') }}</span> </a> </li> @endcan {{-- ------- Vendor Bill ---------- --}} @can('manage vender bill') <li class="dash-item {{ Request::route()->getName() == 'vender.bill' || Request::route()->getName() == 'vender.bill.show' ? ' active' : '' }}"> <a href="{{ route('vender.bill') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-file-invoice"></i></span> <span class="dash-mtext">{{ __('Bill') }}</span> </a> </li> @endcan {{-- ------- Vendor Payment ---------- --}} @can('manage vender payment') <li class="dash-item {{ Request::route()->getName() == 'vender.payment' ? ' active' : '' }} "> <a href="{{ route('vender.payment') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-file-invoice"></i></span> <span class="dash-mtext">{{ __('Payment') }}</span> </a> </li> @endcan {{-- ------- Vendor Transaction ---------- --}} @can('manage vender transaction') <li class="dash-item {{ Request::route()->getName() == 'vender.transaction' ? ' active' : '' }}"> <a href="{{ route('vender.transaction') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-history"></i></span> <span class="dash-mtext">{{ __('Transaction') }}</span> </a> </li> @endcan {{-- ------- Product & Service ---------- --}} @if (Gate::check('manage product & service')) <li class="dash-item {{ Request::segment(1) == 'productservice' ? 'active' : '' }} "> <div class="custom-icon"> <a href="{{ route('productservice.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/product.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Product & Services') }}</span> </a> </div> </li> @endif {{-- ------- Product & Stock ---------- --}} @if (Gate::check('manage product & service')) <li class="dash-item {{ Request::segment(1) == 'productstock' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('productstock.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/stock.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Product Stock') }}</span> </a> </div> </li> @endif {{-- ------- Customer ---------- --}} @if (Gate::check('manage customer')) <li class="dash-item {{ Request::segment(1) == 'customer' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('customer.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/customers.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Customer') }}</span> </a> </div> </li> @endif {{-- ------- Vendor ---------- --}} @if (Gate::check('manage vender')) <li class="dash-item {{ Request::segment(1) == 'vender' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('vender.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/vendor_2.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Vendor') }}</span> </a> </div> </li> @endif @if (Gate::check('manage proposal') || Gate::check('manage retainer')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'proposal' || Request::segment(1) == 'retainer' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"> <img src="{{ asset('assets/images/svg/presales.svg') }}" class="w-4 h-4 mr-[10px] icon" alt="dashboard" /> <span class="dash-mtext mr-[10px]">{{ __('Presale') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'proposal' || Request::segment(1) == 'retainer' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'proposal' || Request::segment(1) == 'retainer' ? 'show' : '' }} max-h-0 overflow-hidden transition-all duration-300 ease-in-out"> @can('manage proposal') <li class="dash-item {{ Request::route()->getName() == 'proposal.index' || Request::route()->getName() == 'proposal.create' || Request::route()->getName() == 'proposal.edit' || Request::route()->getName() == 'proposal.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('proposal.index') }}">{{ __('Proposal') }}</a> </li> @endcan @can('manage retainer') <li class="dash-item {{ Request::route()->getName() == 'retainer.index' || Request::route()->getName() == 'retainer.create' || Request::route()->getName() == 'retainer.edit' || Request::route()->getName() == 'retainer.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('retainer.index') }}">{{ __('Retainers') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Banking ---------- --}} @if (Gate::check('manage bank account') || Gate::check('manage transfer')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'bank-account' || Request::segment(1) == 'transfer' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"><span class="dash-micon"><img src="{{ asset('assets/images/svg/bank.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> </span><span class="dash-mtext">{{ __('Banking') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'bank-account' || Request::segment(1) == 'transfer' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'bank-account' || Request::segment(1) == 'transfer' ? 'show' : '' }}"> @can('manage bank account') <li class="dash-item {{ Request::route()->getName() == 'bank-account.index' || Request::route()->getName() == 'bank-account.create' || Request::route()->getName() == 'bank-account.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('bank-account.index') }}">{{ __('Account') }}</a> </li> @endcan @can('manage transfer') <li class="dash-item {{ Request::route()->getName() == 'transfer.index' || Request::route()->getName() == 'transfer.create' || Request::route()->getName() == 'transfer.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('transfer.index') }}">{{ __('Transfer') }}</a> </li> @endcan <li class="dash-item {{ Request::route()->getName() == 'bankStatement.index' || Request::route()->getName() == 'bankStatement.create' || Request::route()->getName() == 'bankStatement.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('bankStatement.index') }}">{{ __('Import Bank Statements') }}</a> </li> </ul> </li> @endif {{-- ------- Income ---------- --}} @if (Gate::check('manage invoice') || Gate::check('manage revenue') || Gate::check('manage credit note')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'invoice' || Request::segment(1) == 'revenue' || Request::segment(1) == 'credit-note' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"> <img src="{{ asset('assets/images/svg/income.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Income') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'invoice' || Request::segment(1) == 'revenue' || Request::segment(1) == 'credit-note' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'invoice' || Request::segment(1) == 'revenue' || Request::segment(1) == 'credit-note' ? 'show' : '' }}"> @can('manage invoice') <li class="dash-item {{ Request::route()->getName() == 'invoice.index' || Request::route()->getName() == 'invoice.create' || Request::route()->getName() == 'invoice.edit' || Request::route()->getName() == 'invoice.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('invoice.index') }}">{{ __('Invoice') }}</a> </li> @endcan @can('manage revenue') <li class="dash-item {{ Request::route()->getName() == 'revenue.index' || Request::route()->getName() == 'revenue.create' || Request::route()->getName() == 'revenue.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('revenue.index') }}">{{ __('Revenue') }}</a> </li> @endcan @can('manage credit note') <li class="dash-item {{ Request::route()->getName() == 'credit.note' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('credit.note') }}">{{ __('Credit Note') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Expense ---------- --}} @if (Gate::check('manage bill') || Gate::check('manage payment') || Gate::check('manage debit note')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'bill' || Request::segment(1) == 'payment' || Request::segment(1) == 'debit-note' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"><img src="{{ asset('assets/images/svg/expenses.svg') }}" class="w-4 h-4 icon" alt="dashboard" /><span class="dash-mtext">{{ __('Expense') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'bill' || Request::segment(1) == 'payment' || Request::segment(1) == 'debit-note' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'bill' || Request::segment(1) == 'payment' || Request::segment(1) == 'debit-note' ? 'show' : '' }}"> @can('manage bill') <li class="dash-item {{ Request::route()->getName() == 'bill.index' || Request::route()->getName() == 'bill.create' || Request::route()->getName() == 'bill.edit' || Request::route()->getName() == 'bill.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('bill.index') }}">{{ __('Bill') }}</a> </li> @endcan @can('manage payment') <li class="dash-item {{ Request::route()->getName() == 'payment.index' || Request::route()->getName() == 'payment.create' || Request::route()->getName() == 'payment.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('payment.index') }}">{{ __('Payment') }}</a> </li> @endcan @can('manage debit note') <li class="dash-item {{ Request::route()->getName() == 'debit.note' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('debit.note') }}">{{ __('Debit Note') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Double Entry ---------- --}} @if (Gate::check('manage chart of account') || Gate::check('manage journal entry') || Gate::check('balance sheet report') || Gate::check('ledger report') || Gate::check('trial balance report')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'chart-of-account' || Request::segment(1) == 'journal-entry' || Request::segment(2) == 'ledger' || Request::segment(2) == 'balance-sheet' || Request::segment(2) == 'trial-balance' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"><img src="{{ asset('assets/images/svg/double.svg') }}" class="w-4 h-4 icon" alt="dashboard" /><span class="dash-mtext">{{ __('Double Entry') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'chart-of-account' || Request::segment(1) == 'journal-entry' || Request::segment(2) == 'ledger' || Request::segment(2) == 'balance-sheet' || Request::segment(2) == 'trial-balance' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'chart-of-account' || Request::segment(1) == 'journal-entry' || Request::segment(2) == 'ledger' || Request::segment(2) == 'balance-sheet' || Request::segment(2) == 'trial-balance' ? 'show' : '' }}"> @can('manage chart of account') <li class="dash-item {{ Request::route()->getName() == 'chart-of-account.index' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('chart-of-account.index') }}">{{ __('Chart of Accounts') }}</a> </li> @endcan @can('manage journal entry') <li class="dash-item {{ Request::route()->getName() == 'journal-entry.index' || Request::route()->getName() == 'journal-entry.show' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('journal-entry.index') }}">{{ __('Journal Account') }}</a> </li> @endcan @can('ledger report') <li class="dash-item {{ Request::route()->getName() == 'report.ledger' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.ledger') }}">{{ __('Ledger Summary') }}</a> </li> @endcan @can('balance sheet report') <li class="dash-item {{ Request::route()->getName() == 'report.balance.sheet' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.balance.sheet') }}">{{ __('Balance Sheet') }}</a> </li> @endcan @can('trial balance report') <li class="dash-item {{ Request::route()->getName() == 'trial.balance' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('trial.balance') }}">{{ __('Trial Balance') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Budget Planner ---------- --}} @if (\Auth::user()->type == 'company') <li class="dash-item {{ Request::segment(1) == 'budget' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('budget.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/budget.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Budget Planner') }}</span> </a> </div> </li> @endif {{-- ------- Contract ---------- --}} @if (Gate::check('manage contract')) <li class="dash-item {{ Request::segment(1) == 'contract' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('contract.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/contract.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Contract') }}</span> </a> </div> </li> @endif @can('manage customer contract') <li class="dash-item {{ Request::segment(2) == 'contract' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('customer.contract.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/contract.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Contract') }}</span> </a> </div> </li> @endcan {{-- ------- Goal---------- --}} @if (Gate::check('manage goal')) <li class="dash-item {{ Request::segment(1) == 'goal' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('goal.index') }}" class="dash-link"> <img src="{{ asset('assets/images/svg/double.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Goal') }}</span> </a> </div> </li> @endif {{-- ------- Asset ---------- --}} @if (Gate::check('manage assets')) <li class="dash-item {{ Request::segment(1) == 'account-assets' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('account-assets.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/assets.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Assets') }}</span> </a> </div> </li> @endif {{-- ------- Plan---------- --}} @if (Gate::check('manage plan')) <li class="dash-item {{ Request::segment(1) == 'plans' || Request::segment(1) == 'stripe' ? 'active' : '' }}"> <a href="{{ route('plans.index') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-trophy"></i></span> <span class="dash-mtext">{{ __('Plan') }}</span> </a> </li> @endif {{-- ------- Plan Request---------- --}} @if (\Auth::user()->type == 'super admin') <li class="dash-item {{ request()->is('plan_request*') ? 'active' : '' }}"> <a href="{{ route('plan_request.index') }}" class="dash-link"> <span class="dash-micon"><i class="ti ti-arrow-up-right-circle"></i></span> <span class="dash-mtext">{{ __('Plan Request') }}</span> </a> </li> @endif {{-- ------- Coupon ---------- --}} @if (Gate::check('manage coupon')) <li class="dash-item {{ Request::segment(1) == 'coupons' ? 'active' : '' }}"> <a href="{{ route('coupons.index') }}" class="dash-link "> <span class="dash-micon"><i class="ti ti-gift"></i></span> <span class="dash-mtext">{{ __('Coupon') }}</span> </a> </li> @endif {{-- ------- Order ---------- --}} {{-- @if (Gate::check('manage order')) <li class="dash-item {{ Request::segment(1) == 'order' ? 'active' : '' }}"> <div class="custom-icon"> <a href="{{ route('order.index') }}" class="dash-link "> <img src="{{ asset('assets/images/svg/fhg.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Order') }}</span> </a> </div> </li> @endif --}} {{-- ------- Email Notification ---------- --}} {{-- @if (\Auth::user()->type == 'super admin') <li class="dash-item {{ Request::segment(1) == 'email_template_lang' ? 'active' : '' }}"> <a href="{{ route('manage.email.language', [$emailTemplate->id, \Auth::user()->lang]) }}" class="dash-link"><span class="dash-micon"><i class="ti ti-template"></i></span><span class="dash-mtext">{{ __('Email Template') }}</span></a> </li> @endif @if (\Auth::user()->type == 'company') <li class="dash-item {{ Request::segment(1) == 'Notifications' ? 'active' : '' }}"> <a href="{{ route('notification-templates.index') }}" class="dash-link"><span class="dash-micon"><i class="ti ti-bell"></i></span><span class="dash-mtext">{{ __('Notification Template') }}</span></a> </li> @endif <!-- @if (\Auth::user()->type == 'company') <li class="dash-item"> <a href="{{ route('email_template.index') }}" class="dash-link"><span class="dash-micon"><i class="ti ti-notification"></i></span><span class="dash-mtext">{{ __('Email Notification') }}</span></a> </li> @endif --> --}} {{-- ------- Report ---------- --}} @if (Gate::check('income report') || Gate::check('expense report') || Gate::check('income vs expense report') || Gate::check('tax report') || Gate::check('loss & profit report') || Gate::check('invoice report') || Gate::check('bill report') || Gate::check('invoice report') || Gate::check('manage transaction') || Gate::check('statement report')) <li class="dash-item dash-hasmenu {{ (Request::segment(1) == 'report' || Request::segment(1) == 'transaction') && Request::segment(2) != 'ledger' && Request::segment(2) != 'balance-sheet' && Request::segment(2) != 'trial-balance' ? ' active dash-trigger' : '' }}"> <a href="#!" class="dash-link sub-link"> <img src="{{ asset('assets/images/svg/reports_2.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Report') }} <i data-feather="chevron-down" class="chevron transition-transform {{ (Request::segment(1) == 'report' || Request::segment(1) == 'transaction') && Request::segment(2) != 'ledger' && Request::segment(2) != 'balance-sheet' && Request::segment(2) != 'trial-balance' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ (Request::segment(1) == 'report' || Request::segment(1) == 'transaction') && Request::segment(2) != 'ledger' && Request::segment(2) != 'balance-sheet' && Request::segment(2) != 'trial-balance' ? 'show' : '' }}"> @can('manage transaction') <li class="dash-item {{ Request::route()->getName() == 'transaction.index' || Request::route()->getName() == 'transfer.create' || Request::route()->getName() == 'transaction.edit' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('transaction.index') }}">{{ __('Transaction') }}</a> </li> @endcan @can('statement report') <li class="dash-item {{ Request::route()->getName() == 'report.account.statement' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.account.statement') }}">{{ __('Account Statement') }}</a> </li> @endcan @can('income report') <li class="dash-item {{ Request::route()->getName() == 'report.income.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.income.summary') }}">{{ __('Income Summary') }}</a> </li> @endcan @can('expense report') <li class="dash-item {{ Request::route()->getName() == 'report.expense.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.expense.summary') }}">{{ __('Expense Summary') }}</a> </li> @endcan @can('income vs expense report') <li class="dash-item {{ Request::route()->getName() == 'report.income.vs.expense.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.income.vs.expense.summary') }}">{{ __('Income VS Expense') }}</a> </li> @endcan @can('tax report') <li class="dash-item {{ Request::route()->getName() == 'report.tax.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.tax.summary') }}">{{ __('Tax Summary') }}</a> </li> @endcan @can('loss & profit report') <li class="dash-item {{ Request::route()->getName() == 'report.monthly.cashflow' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.monthly.cashflow') }}">{{ __('Cash Flow') }}</a> </li> @endcan @can('invoice report') <li class="dash-item {{ Request::route()->getName() == 'report.invoice.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.invoice.summary') }}">{{ __('Invoice Summary') }}</a> </li> @endcan @can('bill report') <li class="dash-item {{ Request::route()->getName() == 'report.bill.summary' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.bill.summary') }}">{{ __('Bill Summary') }}</a> </li> @endcan @can('stock report') <li class="dash-item {{ Request::route()->getName() == 'report.product.stock.report' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('report.product.stock.report') }}">{{ __('Product Stock') }}</a> </li> @endcan </ul> </li> @endif {{-- ------- Constant ---------- --}} @if (Gate::check('manage constant tax') || Gate::check('manage constant category') || Gate::check('manage constant unit') || Gate::check('manage constant payment method') || Gate::check('manage constant custom field') || Gate::check('manage constant contract type') || Gate::check('manage constant chart of account')) <li class="dash-item dash-hasmenu {{ Request::segment(1) == 'taxes' || Request::segment(1) == 'product-category' || Request::segment(1) == 'product-unit' || Request::segment(1) == 'payment-method' || Request::segment(1) == 'custom-field' || Request::segment(1) == 'chart-of-account-type' ? ' active dash-trigger' : '' }} "> <a href="#!" class="dash-link sub-link"> <img src="{{ asset('assets/images/svg/income.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Constant') }} <i data-feather="chevron-down" class="chevron transition-transform {{ Request::segment(1) == 'taxes' || Request::segment(1) == 'product-category' || Request::segment(1) == 'product-unit' || Request::segment(1) == 'payment-method' || Request::segment(1) == 'custom-field' || Request::segment(1) == 'chart-of-account-type' ? 'rotate-180' : '' }}"></i> </span> </a> <ul class="dash-submenu {{ Request::segment(1) == 'taxes' || Request::segment(1) == 'product-category' || Request::segment(1) == 'product-unit' || Request::segment(1) == 'payment-method' || Request::segment(1) == 'custom-field' || Request::segment(1) == 'chart-of-account-type' ? 'show' : '' }}"> @can('manage constant tax') <li class="dash-item {{ Request::route()->getName() == 'taxes.index' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('taxes.index') }}">{{ __('Taxes') }}</a> </li> @endcan @can('manage constant category') <li class="dash-item {{ Request::route()->getName() == 'product-category.index' ? 'active' : '' }}"> <a class="dash-link" href="{{ route('product-category.index') }}">{{ __('Category') }}</a> </li> @endcan @can('manage constant unit') <li class="dash-item {{ Request::route()->getName() == 'product-unit.index' ? ' active' : '' }}"> <a class="dash-link" href="{{ route('product-unit.index') }}">{{ __('Unit') }}</a> </li> @endcan @can('manage constant custom field') <li class="dash-item {{ Request::route()->getName() == 'custom-field.index' ? 'active' : '' }}"> <a class="dash-link" href="{{ route('custom-field.index') }}">{{ __('Custom Field') }}</a> </li> @endcan @can('manage constant contract type') <li class="dash-item {{ Request::route()->getName() == 'contractType.index' ? 'active' : '' }}"> <a class="dash-link" href="{{ route('contractType.index') }}">{{ __('Contract Type') }}</a> </li> @endcan </ul> </li> @endif {{-- @if (\Auth::user()->type == 'super admin') @include('landingpage::menu.landingpage') @endif --}} @if (\Auth::user()->type == 'super admin') <li class="dash-item {{ Request::route()->getName() == 'landingpage.index' || Request::route()->getName() == 'custom_page.index' || Request::route()->getName() == 'homesection.index' || Request::route()->getName() == 'features.index' || Request::route()->getName() == 'discover.index' || Request::route()->getName() == 'screenshots.index' || Request::route()->getName() == 'pricing_plan.index' || Request::route()->getName() == 'faq.index' || Request::route()->getName() == 'testimonials.index' || Request::route()->getName() == 'join_us.index' ? ' active' : '' }}"> <a href="{{ route('landingpage.index') }}" class="dash-link"> <span class="dash-micon"><i class="ti ti-license"></i></span><span class="dash-mtext">{{ __('Landing Page') }}</span> </a> </li> @endif {{-- ------- System Setting ---------- --}} @if (Gate::check('manage system settings')) <li class="dash-item "> <a href="{{ route('referral-program.index') }}" class="dash-link {{ Request::route()->getName() == 'referral-program.index' ? ' active' : '' }}"> <span class="dash-micon"><i class="ti ti-discount-2"></i></span> <span class="dash-mtext">{{ __('Referral Program') }}</span> </a> </li> <li class="dash-item {{ Request::route()->getName() == 'settings.index' ? ' active' : '' }}"> <div class="custom-icon"> <a href="{{ route('settings.index') }}" class="dash-link"> <img src="{{ asset('assets/images/svg/settings.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Settings') }}</span> </a> </div> </li> @endif {{-- ------- Company Setting ---------- --}} {{-- <li class="dash-item "> <a href="{{ route('referral-program.company') }}" class="dash-link {{ Request::route()->getName() == 'referral-program.company' ? ' active' : '' }}"> <span class="dash-micon"><i class="ti ti-discount-2"></i></span> <span class="dash-mtext">{{ __('Referral Program') }}</span> </a> </li> --}} <li class="dash-item {{ Request::route()->getName() == 'systems.index' ? ' active' : '' }}"> <div class="custom-icon"> <a href="{{ route('company.setting') }}" class="dash-link"> <img src="{{ asset('assets/images/svg/settings_2.svg') }}" class="w-4 h-4 icon" alt="dashboard" /> <span class="dash-mtext">{{ __('Settings') }}</span> </a> </div> </li> </ul> </div> </div> </nav> <script> document.addEventListener("DOMContentLoaded", function () { const menuTriggers = document.querySelectorAll(".dash-hasmenu > a"); menuTriggers.forEach(trigger => { trigger.addEventListener("click", function (e) { e.preventDefault(); // Close all open menus first document.querySelectorAll(".dash-submenu").forEach(menu => { if (menu !== this.nextElementSibling) { menu.classList.remove("show"); } }); // Reset all chevrons document.querySelectorAll(".chevron").forEach(icon => { icon.classList.remove("rotate-180"); }); // Toggle current submenu const submenu = this.nextElementSibling; submenu.classList.toggle("show"); // Toggle chevron const chevron = this.querySelector(".chevron"); if (chevron) { chevron.classList.toggle("rotate-180"); } }); }); }); </script>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 2.12 |
proxy
|
phpinfo
|
Settings