@php
$configData = Helper::applClasses();
$user = auth()->user();
$segment1 = request()->segment(1);
$segment2 = request()->segment(2);
@endphp
{{-- dashboard --}}
{{-- -
--}}
{{-- --}}
{{--
--}}
{{-- @can('View Dashboard')
-
@endcan --}}
@canany([
'View Plant',
'View Department',
'View Section',
'View Zone',
'View Area Office',
'View Collection
Points',
])
{{-- Organization --}}
-
@endcanany
@canany([
'View Dispatch Point',
'View Building'
])
{{-- Organization --}}
-
@endcanany
@if ($user->canany(['View Inventory Item', 'View Inventory Item Type','Milk Purchases',
'Milk Receptions',
'Milk Rejections',
'Milk Transfers',
'Milk Dispatches',
'Plant
Receptions',
'Plant Vehicle Status','View Source Type', 'View Supplier', 'View Categories', 'View Delivery Configuration']))
@endif
{{-- Supplier --}}
@canany(['View Source Type', 'View Supplier', 'View Categories', 'View Delivery Configuration'])
-
@endcanany
{{-- Inventory --}}
@if ($user->canany(['View Inventory Item', 'View Inventory Item Type']))
-
@can('View Inventory Item')
@endcan
@can('View Inventory Item Type')
@endcan
@endif
@canany([
'Milk Purchases',
'Milk Receptions',
'Milk Rejections',
'Milk Transfers',
'Milk Dispatches',
'Plant
Receptions',
'Plant Vehicle Status',
])
-
@can('Milk Purchases')
@endcan
@can('Milk Receptions')
@endcan
@can('Plant Receptions')
@endcan
@can('Milk Transfers')
@endcan
@can('Milk Dispatches')
@endcan
@can('Milk Rejections')
@endcan
@can('Plant Vehicle Status')
@endcan
@can('Milk Purchased Rejections')
@endcan
@can('Hand Shake Reception')
@endcan
@endcanany
@if ($user->can('View MCVehicle') || $user->can('View Vendor Profile') || $user->can('View Route Plan') || $user->can('View Route Vehicles') || $user->can('View Plant Route Plan') || $user->can('View Plant Route Vehicles'))
@endif
{{-- Logistics --}}
@canany(['View MCVehicle', 'View Vendor Profile'])
-
@endcanany
@canany(['View Route Plan', 'View Route Vehicles'])
-
@endcan
@canany(['View Plant Route Plan', 'View Plant Route Vehicles'])
-
@endcan
@if ($user->can('View Base Pricing') || $user->can('View IBL Pricing'))
@endif
@canany(['View IBL Pricing'])
-
@endcanany
@canany(['View Base Pricing'])
-
@endcanany
@if ($user->can('View Outsale Transactions') || $user->can('View Customer'))
@endif
{{-- Customers --}}
@if ($user->can('View Customer'))
-
@endif
@if ($user->can('View Outsale Transactions'))
-
@endif
@if ($user->can('View Meter Readings') || $user->can('View Electricity Bills'))
@endif
@canany([
'View Meter Readings',
'View Electricity Bills'
])
{{-- Organization --}}
-
@endcanany
@if ($user->can('View QaLabTest') || $user->can('View Test UOM'))
@endif
@if ($user->can('View QaLabTest') || $user->can('View Test UOM'))
-
@endif
@if ($user->can('View MilkAdvance') || $user->can('Payment Process View') || $user->can('IBL Payment Process View' || $user->can('View Incentive Rates') || $user->can('View Test Based Supplier Incentives') || $user->can('View Incentive Type')))
@endif
@canany(['View Incentive Rates', 'View Test Based Supplier Incentives', 'View Incentive Type'])
-
@endcanany
@if ($user->can('View MilkAdvance'))
-
@endif
{{-- - Reports End - --}}
@can('Payment Process View')
-
@endcan
@can('IBL Payment Process View')
-
@endcan
@can('Employee Payroll Process View')
-
@endcan
{{-- - Reports Start - --}}
-
@can('Optimized Reports View')
@endcan
@can('Optimized Reports View')
@endcan
{{-- --}}
@can('Milk Movement Summary Report')
@endcan
@can('Test Based Result OR SP Incentives Summary Report')
@endcan
@can('MPS Summary Report')
@endcan
@can('Mobile Report For MMT')
@endcan
@can('MCC Wise Summary Report')
@endcan
@can('Source Wise Summary Report')
@endcan
{{-- @can('Plant Lab Reception Report')
@endcan
@can('FM Area Lab Reception Report')
@endcan
@can('FM Area Lab Dispatch Report')
@endcan
@can('Gain Loss Report')
@endcan
--}}
@canany(['View Targets'])
@endcan
@can('View Targets')
-
@endcan
@can('Create Target')
-
@endcan
@canany(['Designation','View Designation', 'View Employee Category', 'View Employee Type','View Employee', 'View Travel Activity Type','View Employee Travel Plan','View Employee Transfer'])
@endcan
@can('View Designation')
-
@endcan
@can('View Employee Category')
-
@endcan
@can('View Employee Type')
-
@endcan
@can('View Travel Activity Type')
-
@endcan
@can('View Employee Travel Plan')
-
@endcan
@can('View Employee')
-
@endcan
@can('View Employee Transfer')
-
@endcan
@canany(['View UOM','View Cost Heads', 'View Inventory Categories', 'View Material Groups','View Consumable Items','Consumable Items Receiving','Consumable Items Issuance','Consumable Items Requisition','Consumable Items Transfer','Create Revenue Items','Revenue Items Receiving','Revenue Items Issuance','Revenue Items Transfer','Revenue Items Return','Create Fixed Assets','Fixed Assets Receiving','Fixed Assets Allocation','Fixed Assets Transfer','Fixed Assets Movement','Fixed Assets Deletion'])
@endcanany
@can('View UOM')
-
@endcan
@can('View Cost Heads')
-
@endcan
@can('View Inventory Categories')
-
@endcan
@can('View Material Groups')
-
@endcan
@if ($user->canany(['View Consumable Items','Consumable Items Receiving','Consumable Items Issuance','Consumable Items Requisition','Consumable Items Transfer']))
-
@endif
@if ($user->canany(['View Revenue Items','Create Revenue Items','Revenue Items Receiving','Revenue Items Issuance','Revenue Items Transfer','Revenue Items Return']))
-
@can('Create Revenue Items')
@endcan
@can('Revenue Items Receiving')
@endcan
@can('Revenue Items Issuance')
@endcan
@can('Revenue Items Transfer')
@endcan
@can('Revenue Items Return')
@endcan
@endif
@if ($user->canany(['View Fixed Assets','Create Fixed Assets','Fixed Assets Receiving','Fixed Assets Allocation','Fixed Assets Transfer','Fixed Assets Movement','Fixed Assets Deletion']))
-
@can('Create Fixed Assets')
@endcan
@can('Fixed Assets Receiving')
@endcan
@can('Fixed Assets Allocation')
@endcan
@can('Fixed Assets Transfer')
@endcan
@can('Fixed Assets Movement')
@endcan
@can('Fixed Assets Deletion')
@endcan
@endif
@canany(['View General Expense Management', 'View AO Account Management','View Petty Cash Wallet','View Cash Flow','View Expense Category','View General Expense'])
@can('View AO Account Management')
-
@endcan
@can('View Petty Cash Wallet')
-
@endcan
@can('View Cash Flow')
-
@endcan
@can('View Expense Category')
-
@endcan
@can('View General Expense')
-
@endcan
@endcanany
@if ($user->canany(['View Facility Vendor','View Facility Agreement']))
@can('View Facility Vendor')
-
@endcan
@can('View Facility Agreement')
-
@endcan
@can('View Facility Agreement')
-
@endcan
@endif
@if ($user->canany(['View Question', 'View Fault Type', 'View Visit Plans', 'View Corrective Maintenance', 'Corrective Cost Estimate Config']))
@can('View Question')
-
@endcan
@can('View Fault Type')
-
@endcan
@canany([
'View Visit Plans',
'Create Visit Plans',
'Assign Visit Plans'
])
-
@endcanany
{{-- @canany([
'View Corrective Maintenance',
])
-
@endcanany --}}
@canany([
'Corrective Cost Estimate Config',
'View Corrective Maintenance',
])
{{-- -
--}}
-
@endcanany
@endif
@if ($user->canany(['View Competitors','View Competitors Record']))
@can('View Competitors')
-
@endcan
@can('View Competitors Record')
-
@endcan
@endif
@canany(['View Agri Services Categories', 'View Agri Services Types','View Third Party Vendors'])
@can('View Agri Services Categories')
-
@endcan
@can('View Agri Services Types')
-
@endcan
@can('View Third Party Vendors')
-
@endcan
@can('View Services Payments')
-
@endcan
@endcanany
{{-- @if ($user->can(['View AO Account Management']))
-
@endif --}}
@if (
$user->can('View Users') ||
$user->can('Create Users') ||
$user->can('View Roles') ||
$user->can('Create Roles') ||
$user->can('View Permissions') ||
$user->can('Create Permissions') ||
$user->can('View Workflow') ||
$user->can('Milk Base Price') || $user->can('Milk Transfer (mcc to mcc)') || $user->can('Milk Transfer (ao to ao)') ||
$user->can('View Bank') || $user->can('View District', 'View Tehsil')
)
@endif
{{-- users --}}
@if ($user->can('View Users') || $user->can('Create Users'))
-
@endif
@canany(['View Workflow', 'Milk Base Price', 'Milk Transfer (mcc to mcc)', 'Milk Transfer (ao to ao)', 'Fixed Assets Allocation (WF)', 'Fixed Assets Transfer (WF)', 'Fixed Assets Movement (WF)', 'Fixed Assets Scrap (WF)'])
-
@endcanany
@canany(['View Bank', 'View District', 'View Tehsil'])
-
@endcanany