@extends('app') @section('auth') @if (\Request::is('dashboard')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('content')
@elseif (\Request::is('home')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('home')
@elseif (\Request::is('user')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('user.show'), 'placeholder' => 'Search Users...', 'filters' => [ [ 'name' => 'status', 'label' => 'Active', 'options' => array_filter( [ 'inactive' => 'Inactive', 'deleted' => auth()->user()->user_type === 'super_admin' ? 'Deleted' : null, 'all' => 'All', ], fn($value) => !is_null($value)), ], ], ])
@yield('content')
@elseif (\Request::is('packages')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('packages.show'), 'placeholder' => 'Search Packages...', 'filters' => [ [ 'name' => 'package_status', 'label' => 'Active', 'options' => array_filter( [ 'inactive' => 'Inactive', 'deleted' => auth()->user()->user_type === 'super_admin' ? 'Deleted' : null, 'all' => 'All Packages', ], fn($value) => !is_null($value)), ], ], ])
@yield('packages')
@elseif (\Request::is('subscriptionPackage')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('subscriptionPackage.show'), 'placeholder' => 'Search Packages...', ])
@yield('subscriptionPackage')
@elseif (\Request::is('companyProfile')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('companyProfile.show'), 'placeholder' => 'Search Company Name...', ])
@yield('companyProfile')
@elseif (\Request::is('companyProfile/basicInfo*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.basicInfo')
@elseif (\Request::is('companyProfile/company*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.company')
@elseif (\Request::is('companyProfile/microsoft*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.microsoft')
@elseif (\Request::is('companyProfile/tenant*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.tenant')
@elseif (\Request::is('companyProfile/oneDriveFolder*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.oneDriveFolder')
@elseif (\Request::is('companyProfile/config*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('companyProfile.config')
@elseif (\Request::is('companyProfile/employee*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('companyProfile.employee', ['id' => $id ?? null]), 'placeholder' => 'Search Employee Name...', ])
@yield('companyProfile.employee')
@elseif (\Request::is('packages')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('packages')
@elseif (\Request::is('loginLog')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('loginLog.show'), 'placeholder' => 'Search User...', ])
@yield('loginLog')
@elseif (\Request::is('cronLog')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('cronLog.show'), 'placeholder' => 'Search Tenant...', ])
@yield('cronLog')
@elseif (\Request::is('visitorTracker')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('visitorTracker.show'), 'placeholder' => 'Search Tenant...', ])
@yield('visitorTracker')
@elseif (\Request::is('activityLog')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('activityLog.show'), 'placeholder' => 'Search User...', 'filters' => [ [ 'name' => 'user_type', 'label' => 'User Type', 'options' => [ 'super_admin' => 'Super Admin', 'admin' => 'Admin', 'tech_support' => 'Tech Support', ], ], [ 'name' => 'action', 'label' => 'Action', 'options' => [ 'Insert' => 'Insert', 'Update' => 'Update', 'Delete' => 'Delete', ], ], [ 'name' => 'action_module', 'label' => 'Action Module', 'options' => [ 'profile' => 'Profile', 'user' => 'User', 'packages' => 'Packages', 'subscriptionPackage' => 'Subscription Package', 'companyProfile/company' => 'Company Profile/Company', 'companyProfile/tenant' => 'Company Profile/Tenant', 'companyProfile/microsoft' => 'Company Profile/Microsoft', 'companyProfile/oneDriveFolder' => 'Company Profile/OneDrive Folder', 'companyProfile/config' => 'Company Profile/Config', 'ticketSupport' => 'Ticket Support', 'contactUs' => 'Contact Us', 'Faq' => 'FAQ', ], ], ], ])
@yield('activityLog')
@elseif (\Request::is('ticketSupport')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('ticketSupport.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'priority', 'label' => 'Priority', 'options' => [ 'Low' => 'Low', 'Medium' => 'Medium', 'High' => 'High', 'Urgent' => 'Urgent', ], ], [ 'name' => 'status', 'label' => 'Status', 'options' => [ 'Open' => 'Open', 'In Progress' => 'In Progress', 'Resolved' => 'Resolved', 'Closed' => 'Closed', ], ], ], ])
@yield('ticketSupport')
@elseif (\Request::is('ticketSupport*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('ticketSupportIndividual')
@elseif (\Request::is('profile')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('profile')
@elseif (\Request::is('laravelLog')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('laravelLog')
@elseif (\Request::is('contactUs')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('contactUs.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'status', 'label' => 'Open', 'options' => [ 'close' => 'Close', 'all' => 'All Status', ], ], [ 'name' => 'subject', 'label' => 'Subject', 'options' => [ 'request_a_demo' => 'Request A Demo', 'technical_support' => 'Technical Support', 'general_inquiry' => 'General Inquiry', 'pricing_information' => 'Pricing Informaion', 'feedback' => 'Feedback', ], ], ], ])
@yield('contactUs')
@elseif (\Request::is('faq')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('faq.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'status', 'label' => 'Active', 'options' => [ 'inactive' => 'In Active', 'all' => 'All Status', ], ], ], ])
@yield('faq')
@elseif (\Request::is('maintenance_mode')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('maintenanceMode.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'status', 'label' => 'Active', 'options' => [ 'inactive' => 'In Active', 'all' => 'All Status', ], ], ], ])
@yield('maintenanceMode')
@elseif (\Request::is('marketingLabs')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('marketingLabs.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'lab_type', 'label' => 'All Lab Type', 'options' => [ 'Calibration' => 'Calibration', 'Testing' => 'Testing', 'Calibration_and_testing' => 'Calibration&Testing', ], ], [ 'name' => 'status', 'label' => 'All Status', 'options' => [ 'new' => 'New', 'contacted' => 'Contacted', 'interested' => 'Interested', 'not_interested' => 'Not Interested', 'customer' => 'Customer', ], ], [ 'name' => 'is_deleted', 'label' => 'Active', 'options' => [ 'inactive' => 'In-Active', ], ], ], ])
@yield('marketingLabs')
@elseif (\Request::is('common*')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('common')
@elseif (\Request::is('rolePermission')) @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav') @include('components.search-bar', [ 'searchRoute' => route('rolePermission.show'), 'placeholder' => 'Search....', 'filters' => [ [ 'name' => 'is_deleted', 'label' => 'Active', 'options' => [ 'inactive' => 'In-Active', ], ], ], ])
@yield('rolePermissions')
@else @include('layouts.sidebar.sidebar')
@include('layouts.navbar.nav')
@yield('home')
@endif {{-- @include('components.fixed-plugin') --}} @endsection