@if($unreadNotificationCount > 0)
@endif
...
{{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}}
@if(is_null($user->image))
{{ (strlen($user->name) > 24) ? substr(ucwords($user->name), 0, 20).'..' : ucwords($user->name) }}
@else
{{ ucwords($user->name) }}
@endif
@if ($user->cans('view_settings'))
@lang("app.menu.profileSettings")
@endif @if($user->hasRole('admin'))
@lang("app.loginAsAdmin")
@endif
@lang('app.logout')
{{ csrf_field() }}
@lang('app.menu.dashboard')
@lang("app.menu.dashboard")
@if ($user->cans('view_dashboard'))
Admin @lang('app.menu.dashboard')
@endif @if ($user->cans('view_service_dashboard'))
@lang('app.menu.dashboard')
@endif @if ($user->cans('view_hr_dashboard'))
@lang('app.menu.hrDashboard')
@endif @if ($user->cans('view_ticket_dashboard'))
@lang('app.menu.ticketDashboard')
@endif @if ($user->cans('view_finance_dashboard'))
@lang('app.menu.financeDashboard')
@endif
@if(in_array('clients',$modules)) @if($user->cans('view_clients'))
@lang('app.menu.clients')
@endif @endif @if(in_array('projects',$modules)) @if($user->cans('view_projects'))
@lang("app.menu.projects")
@if($unreadProjectCount > 0)
@endif
@endif @endif @if ($user->cans('view_ledge_order') || $user->cans('view_ledger_sponsor'))
@lang('app.menu.ledger_management')
@if ($user->cans('view_ledge_order'))
@lang('app.menu.ledger_order')
@endif @if ($user->cans('view_ledge_sponsor'))
@lang('app.menu.ledger_sponsor')
@endif
@endif @if ($user->cans('view_unit') || $user->cans('view_building') || $user->cans('view_floor') || $user->cans('view_type'))
@lang('app.menu.unit_management')
@if ($user->cans('view_building'))
@lang('app.menu.building')
@endif @if ($user->cans('view_floor'))
@lang('app.menu.floor')
@endif @if ($user->cans('view_unit'))
@lang('app.menu.unit')
@endif @if ($user->cans('view_type'))
@lang('app.menu.type')
@endif @if ($user->cans('view_paket'))
@lang('app.menu.package')
@endif
@endif @if ($user->cans('view_tenant') || $user->cans('view_owner'))
@lang('app.menu.tenant_management')
@if ($user->cans('view_tenant'))
@lang('app.menu.tenant')
@endif @if ($user->cans('view_owner'))
@lang('app.menu.owner')
@endif
@endif @if(in_array('contracts',$modules)) @if ($user->cans('view_contract'))
@lang("app.menu.contract")
@endif @endif @if(in_array('employees',$modules)) @if ($user->cans('view_employees') || $user->cans('view_attendance') || $user->cans('view_holidays') || $user->cans('view_leave'))
@lang('app.menu.hr')
@if(in_array('employees',$modules)) @if($user->cans('view_employees'))
@lang('app.menu.employees')
@endif @endif @if($user->cans('view_department'))
@lang('app.department')
@endif @if($user->cans('view_designation'))
@lang('app.menu.designation')
@endif @if(in_array('attendance',$modules)) @if($user->cans('view_attendance'))
@lang("app.menu.attendance")
@endif @endif @if(in_array('holidays',$modules)) @if($user->cans('view_holiday'))
@lang("app.menu.holiday")
@endif @endif @if(in_array('leaves',$modules))
@lang('app.menu.leaves')
@endif
@endif @endif @if ($user->cans('view_tasks') || $user->cans('view_projects') || $user->cans('view_timelogs') || $user->cans('view_leave'))
@lang('app.menu.work')
@if(in_array('projects',$modules)) @if ($user->cans('view_tasks'))
@lang('app.menu.projects')
@endif @endif @if(in_array('tasks',$modules)) @if ($user->cans('view_tasks'))
@lang('app.menu.tasks')
@lang('modules.tasks.taskBoard')
@lang('app.menu.taskCalendar')
@endif @endif @if(in_array('timelogs',$modules))
@lang('app.menu.timeLogs')
@endif
@endif @if(in_array('products',$modules) && $user->cans('view_product'))
@lang('app.menu.products')
@endif @if(in_array('tasks',$modules)) @if ($user->cans('view_tasks'))
@lang('app.menu.tasks')
@lang('app.menu.tasks')
@lang('app.menu.taskLabel')
@lang('modules.tasks.taskBoard')
@lang('app.menu.taskCalendar')
@endif @endif @if(in_array('leads',$modules)) @if ($user->cans('view_lead'))
@lang('app.menu.lead')
@endif @endif @if(in_array('timelogs',$modules))
@lang('app.menu.timeLogs')
@endif @if(in_array('tickets',$modules))
@lang("app.menu.tickets")
@endif @if ($user->cans('view_news'))
@lang('modules.news.all')
@endif @if ($user->cans('view_package_sponsor'))
@lang('modules.module.package_sponsor')
@endif @if ($user->cans('view_notice_board'))
@lang('app.menu.noticeBoard')
@endif @if((in_array('estimates',$modules) && $user->cans('view_estimates')) || (in_array('invoices',$modules) && $user->cans('view_invoices')) || (in_array('payments',$modules) && $user->cans('view_payments')) || (in_array('expenses',$modules)))
@lang('app.menu.finance') @if($unreadExpenseCount > 0)
@endif
@if(in_array('estimates',$modules)) @if($user->cans('view_estimates'))
@lang('app.menu.estimates')
@endif @endif @if(in_array('invoices',$modules)) @if($user->cans('view_invoices'))
@lang('app.menu.invoices')
@endif @if($user->cans('view_recurring_invoice'))
@lang('app.invoiceRecurring')
@endif @if($user->cans('view_billing_type'))
@lang('app.menu.billing_type')
@endif @endif @if(in_array('payments',$modules)) @if($user->cans('view_payments'))
@lang('app.menu.payments')
@endif @endif @if(in_array('expenses',$modules)) @if($user->cans('view_expenses'))
@lang('app.menu.expenses') @if($unreadExpenseCount > 0)
@endif
@endif @if($user->cans('view_expenses'))
@lang('app.menu.expensesRecurring')
@endif @endif @if(in_array('invoices',$modules)) @if($user->cans('view_invoices'))
@lang('app.menu.credit-note')
@endif @endif
@endif @if(in_array('messages',$modules)) @if ($user->cans('view_messages'))
@lang("app.menu.messages") @if($unreadMessageCount > 0)
{{ $unreadMessageCount }}
@endif
@endif @endif @if(in_array('events',$modules))
@lang('app.menu.Events')
@endif @if($user->cans('view_workorders'))
@lang('app.menu.work')
@endif @if($user->cans('view_billings'))
@lang('app.menu.billing')
@endif @if($user->cans('view_bast'))
BAST
@endif @if($user->cans('view_terms_and_condition'))
@lang('modules.module.terms_and_condition')
@endif @if(in_array('notices',$modules))
@lang("app.menu.noticeBoard")
@endif @if ($user->cans('view_video_tutorial'))
Video Tutorial
@endif {{-- @if(!is_null($faqs)) @endif --}} {{-- @if ($user->cans('view_faq'))
@lang('app.menu.employeeFaq')
@endif --}} @if ($user->cans('view_faq') || $user->cans('view_faq_employees'))
@lang('app.faq')
@if ($user->cans('view_faq'))
@lang('app.myFaq')
@endif @if ($user->cans('view_faq_employees'))
@lang('app.menu.employeeFaq')
@endif
@endif @if ($user->cans('view_house_rules'))
@lang('modules.module.house_rules')
@endif @if ($user->cans('view_settings'))
@lang("app.menu.profileSettings")
@endif @if(in_array("reports", $modules)) @if ($user->cans('view_task_report') || $user->cans('view_timelog_report') || $user->cans('view_finance_report') || $user->cans('view_income_expense_report') || $user->cans('view_leave_report') || $user->cans('view_attendance_report') || $user->cans('view_ownership_report') || $user->cans('view_utility_report') || $user->cans('view_service_charge_report') || $user->cans('view_yearly_income_report'))
@lang('app.menu.reports')
@if(in_array('tasks',$modules)) @if ($user->cans('view_task_report'))
@lang('app.menu.taskReport')
@endif @endif @if(in_array('timelogs',$modules)) @if ($user->cans('view_timelog_report'))
@lang('app.menu.timeLogReport')
@endif @endif @if((in_array("estimates", $modules) || in_array("invoices", $modules) || in_array("payments", $modules) || in_array("expenses", $modules) )) @if ($user->cans('view_finance_report'))
@lang('app.menu.financeReport')
@endif @if ($user->cans('view_income_expense_report'))
@lang('app.menu.incomeVsExpenseReport')
@endif @endif @if(in_array('leaves',$modules)) @if ($user->cans('view_leave_report'))
@lang('app.menu.leaveReport')
@endif @endif @if(in_array('attendance',$modules)) @if ($user->cans('view_attendance_report'))
@lang('app.menu.attendanceReport')
@endif @endif @if ($user->cans('view_ownership_report'))
@lang('app.menu.ownership_management')
@endif @if ($user->cans('view_utility_report'))
@lang('app.menu.utility')
@endif @if ($user->cans('view_service_charge_report'))
@lang('app.menu.service_charges')
@endif @if ($user->cans('view_yearly_income_report'))
@lang('app.menu.yearly_income')
@endif
@endif @endif @foreach ($worksuitePlugins as $item) @if(in_array(strtolower($item), $modules) || in_array($item, $modules)) @if(View::exists(strtolower($item).'::sections.member_left_sidebar')) @include(strtolower($item).'::sections.member_left_sidebar') @endif @endif @endforeach