@extends('layouts.app') @push('datatable-styles') @include('sections.daterange_css') @endpush @push('styles') @endpush @php $viewOverviewDashboard = user()->permission('view_overview_dashboard'); $viewProjectDashboard = user()->permission('view_project_dashboard'); $viewClientDashboard = user()->permission('view_client_dashboard'); $viewHRDashboard = user()->permission('view_hr_dashboard'); $viewTicketDashboard = user()->permission('view_ticket_dashboard'); $viewFinanceDashboard = user()->permission('view_finance_dashboard'); @endphp @section('filter-section')
@if ($viewOverviewDashboard == 'all') @endif @if (in_array('projects', user_modules()) && $viewProjectDashboard == 'all') @endif @if (in_array('clients', user_modules()) && $viewClientDashboard == 'all') @endif @if ($viewHRDashboard == 'all' && (in_array('employees', user_modules()) || in_array('leaves', user_modules()) || in_array('attendance', user_modules()))) @endif @if (in_array('tickets', user_modules()) && $viewTicketDashboard == 'all') @endif @if ($viewFinanceDashboard == 'all' && (in_array('invoices', user_modules()) || in_array('estimates', user_modules()) || in_array('leads', user_modules()))) @endif
@if (isset($widgets) && in_array('admin', user_roles()))
@endif
@endsection @section('content')
@include($view)
@endsection @push('scripts') @endpush