<div class="left-side">
    <div class="nav-collapse">
        <div class="collapse-head">
            <a class="title-tiny-middle text-700" role="button"><?php echo e(__('messages.menu')); ?></a>
        </div>
        <div class="collapse-item show">
            <a href="<?php echo e(route('super-admin.dashboard')); ?>"
               class="collapse-item-single title-small <?php echo e(Route::is('super-admin.dashboard') ? 'active' : ''); ?>"><i
                    class="dashboard-ico"></i><span class="menu-name"><?php echo e(__('messages.dashboard')); ?></span></a>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['user.list','role.list'])): ?>
                <div class="nav-collapse">
                    <div
                        class="collapse-head <?php echo e(Route::is('super-admin.users.index') || Route::is('super-admin.roles.index') || Route::is('super-admin.users.create') || Route::is('super-admin.roles.create') || Route::is('super-admin.users.edit') || Route::is('super-admin.roles.edit') || Route::is('super-admin.users.show')  ? 'active ' : ''); ?>">
                        <a class="title-small"
                           role="button"><i class="user-management-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.user_management')); ?> </span></a>
                    </div>
                    <div
                        class="collapse-item <?php echo e(Route::is('super-admin.roles.index') || Route::is('super-admin.roles.create') || Route::is('super-admin.roles.edit') || Route::is('super-admin.users.index') || Route::is('super-admin.users.create') || Route::is('super-admin.users.edit') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user.list')): ?>
                            <a href="<?php echo e(route('super-admin.users.index')); ?>"
                               class="title-small <?php echo e(Route::is('super-admin.users.index') || Route::is('super-admin.users.create') || Route::is('super-admin.users.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.users')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role.list')): ?>
                            <a href="<?php echo e(route('super-admin.roles.index')); ?>"
                               class="title-small <?php echo e(Route::is('super-admin.roles.index') || Route::is('super-admin.roles.create') || Route::is('super-admin.roles.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.role')); ?></span></a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
    <hr class="nav-collapse-separator"/>
    <div class="nav-collapse">
        <div class="collapse-head">
            <a class="title-tiny-middle text-700" role="button"><?php echo e(__('messages.apps')); ?></a>
        </div>
        <div class="collapse-item show">
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('cattle.list')): ?>
                <div class="nav-collapse">
                    <div
                        class="collapse-head <?php echo e(Route::is('cattles.index') || Route::is('cattles.lifetime-history.index') || Route::is('cattles.create') || Route::is('cattles.lifetime-history.show') || Route::is('cattles.edit') || Route::is('cattles.show')  ? 'active ' : ''); ?>">
                        <a class="title-small text-500" role="button"><i
                                class="cattle-management-ico"></i>
                            <span
                                class=" menu-name"><?php echo e(__('messages.cattle_management')); ?></span></a>
                    </div>
                    <div
                        class="collapse-item <?php echo e(Route::is('cattles.index') || Route::is('cattles.lifetime-history.index') || Route::is('cattles.create') || Route::is('cattles.lifetime-history.show') || Route::is('cattles.edit') || Route::is('cattles.show')  ? 'active ' : ''); ?> ">
                        <a href=" <?php echo e(route('cattles.index')); ?>" class="title-small"><span
                                class="sub-menu-name <?php echo e(Route::is('cattles.index') || Route::is('cattles.create') || Route::is('cattles.edit') || Route::is('cattles.show') ? 'active ' : ''); ?>"><?php echo e(__('messages.cattle_registration')); ?></span></a>
                        <a href="<?php echo e(route('cattles.lifetime-history.index')); ?>"
                           class="title-small <?php echo e(Route::is('cattles.lifetime-history.index') || Route::is('cattles.lifetime-history.show') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.lifetime_history')); ?></span></a>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['AI.list','PD.list','Calving.list','Abortion.list','dry off.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('ai.index') || Route::is('ai.create') || Route::is('ai.edit')
                        || Route::is('pd.index') || Route::is('pd.create') || Route::is('pd.edit')
                        || Route::is('calving.index') || Route::is('calving.create') || Route::is('calving.edit') || Route::is('calving.show')
                        || Route::is('abortion.index') || Route::is('abortion.create') || Route::is('abortion.edit')
                        || Route::is('dryoff.index') || Route::is('dryoff.create') || Route::is('dryoff.edit') ? 'active ' : ''); ?>">
                        <a class="title-small text-500" role="button"><i
                                class="breeding-management-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.breeding_management')); ?></span></a>
                    </div>
                    <div
                        class="collapse-item <?php echo e(Route::is('ai.index') || Route::is('ai.create') || Route::is('ai.edit')
                        || Route::is('pd.index') || Route::is('pd.create') || Route::is('pd.edit')
                        || Route::is('calving.index') || Route::is('calving.create') || Route::is('calving.edit') || Route::is('calving.show')
                        || Route::is('abortion.index') || Route::is('abortion.create') || Route::is('abortion.edit')
                        || Route::is('dryoff.index') || Route::is('dryoff.create') || Route::is('dryoff.edit') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('AI.list')): ?>
                            <a href="<?php echo e(route('ai.index')); ?>"
                               class="title-small <?php echo e(Route::is('ai.index') || Route::is('ai.create') || Route::is('ai.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.a_i')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('PD.list')): ?>
                            <a href="<?php echo e(route('pd.index')); ?>"
                               class="title-small <?php echo e(Route::is('pd.index') || Route::is('pd.create') || Route::is('pd.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.p_d')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Calving.list')): ?>
                            <a href="<?php echo e(route('calving.index')); ?>"
                               class="title-small <?php echo e(Route::is('calving.index') || Route::is('calving.create') || Route::is('calving.edit') || Route::is('calving.show') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.calving')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Abortion.list')): ?>
                            <a href="<?php echo e(route('abortion.index')); ?>"
                               class="title-small <?php echo e(Route::is('abortion.index') || Route::is('abortion.create') || Route::is('abortion.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.abortion')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dry off.list')): ?>
                            <a href="<?php echo e(route('dryoff.index')); ?>"
                               class="title-small <?php echo e(Route::is('dryoff.index') || Route::is('dryoff.create') || Route::is('dryoff.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.dry_off')); ?></span></a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Milk Production.list')): ?>
                <div class="nav-collapse">
                    <div
                        class="collapse-head <?php echo e(Route::is('milk-productions.index') || Route::is('milk-productions.create') || Route::is('milk-productions.edit') || Request::is('system/parlour-milk-production*') || Route::is('parlour-milk-productions.index') || Route::is('parlour-milk-productions.create') || Route::is('parlour-milk-productions.edit') ? 'active ' : ''); ?>">
                        <a class="title-small text-500" role="button">
                            <i class="feed-management-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.milk_production')); ?></span></a>
                    </div>
                    <div
                        class="collapse-item <?php echo e(Route::is('milk-productions.index') || Route::is('milk-productions.create') || Route::is('milk-productions.edit') || Request::is('system/parlour-milk-production*') || Route::is('parlour-milk-productions.index') || Route::is('parlour-milk-productions.create') || Route::is('parlour-milk-productions.edit') ? 'active ' : ''); ?>">
                        <a href="<?php echo e(route('milk-productions.index')); ?>"
                           class="title-small <?php echo e(Route::is('milk-productions.index') || Route::is('milk-productions.create') || Route::is('milk-productions.edit') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.hand_milk')); ?></span></a>
                        <a href="<?php echo e(route('parlour-milk-productions.index')); ?>"
                           class="title-small <?php echo e(Request::is('system/parlour-milk-production*') || Route::is('parlour-milk-productions.index') || Route::is('parlour-milk-productions.create') || Route::is('parlour-milk-productions.edit') ? 'active' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.parlour_milk')); ?></span></a>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['Vaccination.list','Deworming.list','Treatment.list','Body Weight.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('vaccination')|| Route::is('vaccination.index') || Route::is('vaccination.create') || Route::is('vaccination.edit')
                    || Route::is('cured.index') || Route::is('cured.create') || Route::is('cured.edit')
                    || Route::is('deworming.index') || Route::is('deworming.create') || Route::is('deworming.edit')
                    ||  Route::is('treatment.index') || Route::is('treatment.create') || Route::is('treatment.edit')
                    || Route::is('body-weight.index') || Route::is('body-weight.create') || Route::is('body-weight.edit') ? 'active ' : ''); ?>">
                        <a class="title-small text-500"
                           role="button"><i class="health-management-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.health_management')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('vaccination.index') || Route::is('vaccination.create') || Route::is('vaccination.edit')
                    || Route::is('deworming.index') || Route::is('deworming.create') || Route::is('deworming.edit') || Route::is('cured.index') || Route::is('cured.create') || Route::is('cured.edit')
                    || Route::is('treatment.index') || Route::is('treatment.create') || Route::is('treatment.edit')
                    || Route::is('body-weight.index') || Route::is('body-weight.create') || Route::is('body-weight.edit') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Vaccination.list')): ?>
                            <a href="<?php echo e(route('vaccination.index')); ?>"
                               class="title-small <?php echo e(Route::is('vaccination.index') || Route::is('vaccination.create') || Route::is('vaccination.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.vaccination')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Deworming.list')): ?>
                            <a href="<?php echo e(route('deworming.index')); ?>"
                               class="title-small <?php echo e(Route::is('deworming.index') || Route::is('deworming.create') || Route::is('deworming.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.deworming')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Treatment.list')): ?>
                            <a href="<?php echo e(route('treatment.index')); ?>"
                               class="title-small <?php echo e(Route::is('treatment.index') || Route::is('treatment.create') || Route::is('treatment.edit')  ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.treatment')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Body Weight.list')): ?>
                            <a href="<?php echo e(route('body-weight.index')); ?>"
                               class="title-small <?php echo e(Route::is('body-weight.index') || Route::is('body-weight.create') || Route::is('body-weight.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.body_weight')); ?></span></a>
                        <?php endif; ?>
                        <a href="<?php echo e(route('cured.index')); ?>"
                           class="title-small <?php echo e(Route::is('cured.index') ||Route::is('cured.index') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.cured')); ?></span></a>
                    </div>
                </div>
            <?php endif; ?>



















            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['cattle.list', 'cattle.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('solds.index') || Route::is('solds.create') || Route::is('solds.edit')
                || Route::is('deaths.index') || Route::is('deaths.create') || Route::is('deaths.edit') ? 'active ' : ''); ?>">
                        <a class="title-small text-500 "
                           role="button"><i class="disposal-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.disposal')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('solds.index') || Route::is('solds.create') || Route::is('solds.edit')
                || Route::is('deaths.index') || Route::is('deaths.create') || Route::is('deaths.edit') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sold.list')): ?>
                            <a href="<?php echo e(route('solds.index')); ?>"
                               class="title-small <?php echo e(Route::is('solds.index') || Route::is('solds.create') || Route::is('solds.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.sold')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('death.list')): ?>
                            <a href="<?php echo e(route('deaths.index')); ?>"
                               class="title-small <?php echo e(Route::is('deaths.index') || Route::is('deaths.create') || Route::is('deaths.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.death')); ?></span></a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['source list','income expense list',])): ?>
                <div class="nav-collapse">
                    <div
                        class="collapse-head <?php echo e(Route::is('income-expense-index') || Route::is('income-expense-sources') || Route::is( 'inc.exp.year.filter') || Route::is('inc.exp.year.index') ? 'active' : ''); ?>">
                        <a class="title-small"
                           role="button"><i class="briefcase-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.income_and_expense')); ?></span></a>
                    </div>
                    <div
                        class="collapse-item <?php echo e(Route::is('income-expense-index') || Route::is('income-expense-sources') || Route::is('inc.exp.year.index') || Route::is( 'inc.exp.year.filter') ? 'active' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('source list')): ?>
                            <a href="<?php echo e(route('income-expense-sources')); ?>"
                               class="title-small <?php echo e(Route::is('income-expense-sources') ? 'active' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.heads')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income expense list')): ?>
                            <a href="<?php echo e(route('income-expense-index')); ?>"
                               class="title-small <?php echo e(Route::is('income-expense-index') ? 'active' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.income_and_expense')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income expense report')): ?>
                            <a href="<?php echo e(route('inc.exp.year.index')); ?>"
                               class="title-small <?php echo e(Route::is('inc.exp.year.index') || Route::is( 'inc.exp.year.filter') ? 'active' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.yearly_report')); ?></span></a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['breeding action.list','vaccine action.list','deworming action.list','treatment action.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('daily-action.breeding.index') || Route::is('daily-action.vaccination.index')
                    || Route::is('daily-action.deworming.index') || Route::is('daily-action.treatment.index') ? 'active ' : ''); ?>">
                        <a class="title-small text-500 "
                           role="button"><i class="daily-action-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.daily_action')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('daily-action.breeding.index') || Route::is('daily-action.vaccination.index')
                    || Route::is('daily-action.deworming.index') || Route::is('daily-action.treatment.index') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('breeding action.list')): ?>
                            <a href="<?php echo e(route('daily-action.breeding.index')); ?>"
                               class="title-small <?php echo e(Route::is('daily-action.breeding.index') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.breeding')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('vaccine action.list')): ?>
                            <a href="<?php echo e(route('daily-action.vaccination.index')); ?>"
                               class="title-small <?php echo e(Route::is('daily-action.vaccination.index') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.vaccination')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deworming action.list')): ?>
                            <a href="<?php echo e(route('daily-action.deworming.index')); ?>"
                               class="title-small <?php echo e(Route::is('daily-action.deworming.index') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.deworming')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('treatment action.list')): ?>
                            <a href="<?php echo e(route('daily-action.treatment.index')); ?>"
                               class="title-small <?php echo e(Route::is('daily-action.treatment.index') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.treatment')); ?></span></a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('alert action.list')): ?>
                <a href="<?php echo e(route('alert-action.index')); ?>"
                   class="collapse-item-single title-small text-500 <?php echo e(Route::is('alert-action.index') ? 'active ' : ''); ?>"><i
                        class="alert-action-ico"></i><span
                        class="menu-name"><?php echo e(__('messages.alert_action')); ?></span></a>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('general report.list')): ?>
                <a href="<?php echo e(route('general.report')); ?>"
                   class="collapse-item-single title-small text-500 <?php echo e(Route::is('general.report') ? 'active ' : ''); ?>"><i
                        class="general-report-ico"></i><span
                        class="menu-name"><?php echo e(__('messages.general_report')); ?></span></a>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('general report.list')): ?>
                <a href="<?php echo e(route('daily-report')); ?>"
                   class="collapse-item-single title-small text-500 <?php echo e(Route::is('daily-report') ? 'active ' : ''); ?>"><i
                        class="daily-report-ico"></i><span
                        class="menu-name"><?php echo e(__('messages.daily_report')); ?> </span></a>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['custom vaccine report.list','custom deworm report.list','custom sire report.list','custom treatment report.list','custom miscellaneous report.list', 'custom food report.list','custom amr report.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('monthly.animal-state-report.report') || Route::is('monthly.pregnant-state-report.report')
                        || Route::is('monthly.hand-milking-report.report') || Route::is('monthly.milking-porlour-report.report')
                        || Route::is('monthly.sick-animal-cattle-report.report') || Route::is('monthly.state-pregnant-cow-report.report') || Route::is('monthly.state-cow-report.report') || Route::is('monthly.update-non-pregnant-cow-report.report') || Route::is('monthly.sick-animal-buffalo-report.report')
                         ? 'active ' : ''); ?>">
                        <a class="title-small text-500 " role="button"><i class="monthly-report-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.monthly_report')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('monthly.animal-state-report.report') || Route::is('monthly.pregnant-state-report.report')
                        || Route::is('monthly.hand-milking-report.report') || Route::is('monthly.milking-porlour-report.report') || Route::is('monthly.milking-report.report') || Route::is('monthly.sick-animal-cattle-report.report') || Route::is('monthly.state-pregnant-cow-report.report') || Route::is('monthly.state-cow-report.report') || Route::is('monthly.update-non-pregnant-cow-report.report') || Route::is('monthly.sick-animal-buffalo-report.report')
                         ? 'active ' : ''); ?>">
                        <a href="<?php echo e(route('monthly.animal-state-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.animal-state-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.animal_state_report')); ?></span></a>
                        <a href="<?php echo e(route('monthly.pregnant-state-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.pregnant-state-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.pregnant_report')); ?></span></a>
                        <a href="<?php echo e(route('monthly.milking-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.milking-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.milking_report')); ?></span></a>
                        <a href="<?php echo e(route('monthly.sick-animal-cattle-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.sick-animal-cattle-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.sick_animal_report')); ?></span></a>
                        <a href="<?php echo e(route('monthly.state-cow-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.state-cow-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.state_of_cow')); ?></span></a>
                        <a href="<?php echo e(route('monthly.state-pregnant-cow-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.state-pregnant-cow-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.state_of_pregnant')); ?></span></a>
                        <a href="<?php echo e(route('monthly.update-non-pregnant-cow-report.report')); ?>"
                           class="title-small <?php echo e(Route::is('monthly.update-non-pregnant-cow-report.report') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.update_report_on_non_pregnant_cow')); ?></span></a>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['custom vaccine report.list','custom deworm report.list','custom sire report.list','custom treatment report.list','custom miscellaneous report.list', 'custom food report.list','custom amr report.list'])): ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('custom.vaccination.report') || Route::is('custom.deworming.report')
                    || Route::is('custom.sire_performance.report') || Route::is('custom.disease-analytics.report') ||  Route::is('custom.treatment.report') ||  Route::is('custom.miscellaneous.report') || Route::is('custom.milk-report.report') || Route::is('custom.feed-report.report') || Route::is('book-value-report-table') || Route::is('custom.disposal-report.report') || Route::is('custom.amr-alert.report') ? 'active ' : ''); ?>">
                        <a class="title-small text-500 "
                           role="button"><i class="custom-report-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.custom_report')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('custom.vaccination.report') || Route::is('custom.deworming.report')
                    || Route::is('custom.sire_performance.report') || Route::is('custom.disease-analytics.report') || Route::is('custom.treatment.report') ||  Route::is('custom.miscellaneous.report') || Route::is('custom.milk-report.report') || Route::is('custom.feed-report.report') || Route::is('book-value-report-table') || Route::is('custom.disposal-report.report') || Route::is('custom.amr-alert.report') ? 'active ' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom vaccine report.list')): ?>
                            <a href="<?php echo e(route('custom.vaccination.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.vaccination.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.vaccination_report')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom deworm report.list')): ?>
                            <a href="<?php echo e(route('custom.deworming.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.deworming.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.deworming_report')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom treatment report.list')): ?>
                            <a href="<?php echo e(route('custom.treatment.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.treatment.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.treatment_report')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom treatment report.list')): ?>
                            <a href="<?php echo e(route('custom.disease-analytics.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.disease-analytics.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.disease_report')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom sire report.list')): ?>
                            <a href="<?php echo e(route('custom.sire_performance.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.sire_performance.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.sire_performance')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom miscellaneous report.list')): ?>
                            <a href="<?php echo e(route('custom.miscellaneous.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.miscellaneous.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.miscellaneous')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('custom amr report.list')): ?>
                            <a href="<?php echo e(route('custom.amr-alert.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.amr-alert.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.amr_report')); ?></span></a>
                        <?php endif; ?>










                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('death.list')): ?>
                            <a href="<?php echo e(route('custom.disposal-report.report')); ?>"
                               class="title-small <?php echo e(Route::is('custom.disposal-report.report') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.disposal_report')); ?></span></a>
                        <?php endif; ?>
                        <a href="<?php echo e(route('book-value-report-table')); ?>"
                           class="title-small <?php echo e(Route::is('book-value-report-table') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.book_values')); ?></span></a>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
    <hr class="nav-collapse-separator"/>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['action peremeter.view','farm.list','herd.list','lot.list','tag.list','breed.list','vaccine.list','dewormer.list','feed.list','sire.list','disease.list','lab test.list','medicine group.list','medicine.list','statistics report.list'])): ?>
        <div class="nav-collapse">
            <div class="collapse-head">
                <a class="title-tiny-middle text-700" role="button"><?php echo e(__('messages.settings')); ?></a>
            </div>
            <div class="collapse-item show">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('action peremeter.view')): ?>
                    <a href="<?php echo e(route('action-perameters.index')); ?>"
                       class="collapse-item-single title-small text-500 <?php echo e(Route::is('action-perameters.index') ? 'active ' : ''); ?>"><i
                            class="action-parameter-ico"></i><span
                            class="menu-name"><?php echo e(__('messages.action_parameter')); ?></span></a>
                <?php endif; ?>
                <div class="nav-collapse">
                    <div class="collapse-head <?php echo e(Route::is('farms.index') || Route::is('farms.create') || Route::is('farms.edit') ||
                        Route::is('herds.index') || Route::is('herds.create') || Route::is('herds.edit') ||
                        Route::is('lots.index') || Route::is('lots.create') || Route::is('lots.edit') || Route::is('tags.index') ||  Route::is('breeds.index') || Route::is('breeds.create') || Route::is('breeds.edit') ||   Route::is('vaccines.index') || Route::is('vaccines.create') || Route::is('vaccines.edit') ||  Route::is('dewormers.index') || Route::is('dewormers.create') || Route::is('dewormers.edit') || Route::is('feeds.index') || Route::is('feeds.create') || Route::is('feeds.edit') ||  Route::is('feed-estimations.index') || Route::is('feed-estimations.create') || Route::is('feed-estimations.edit') || Route::is('sires.index') || Route::is('sires.create') || Route::is('sires.edit') || Route::is('diseases.index') || Route::is('diseases.create') || Route::is('diseases.edit') || Route::is('lab-test.index') || Route::is('lab-test.create') || Route::is('lab-test.edit') || Route::is('medicine_groups.index') || Route::is('medicine_groups.create') || Route::is('medicine_groups.edit') || Route::is('medicines.index') || Route::is('medicines.create') || Route::is('medicines.edit') || Route::is('booking_value.index') || Route::is('assess.table.view') ? 'active' : ''); ?>">
                        <a class="title-small text-500 "
                           role="button"><i class="general-settings-ico"></i><span
                                class="menu-name"><?php echo e(__('messages.general_settings')); ?></span></a>
                    </div>
                    <div class="collapse-item <?php echo e(Route::is('farms.index') || Route::is('farms.create') || Route::is('farms.edit') ||
                        Route::is('herds.index') || Route::is('herds.create') || Route::is('herds.edit') ||
                        Route::is('lots.index') || Route::is('lots.create') || Route::is('lots.edit') || Route::is('tags.index') ||  Route::is('breeds.index') || Route::is('breeds.create') || Route::is('breeds.edit') ||   Route::is('vaccines.index') || Route::is('vaccines.create') || Route::is('vaccines.edit') ||  Route::is('dewormers.index') || Route::is('dewormers.create') || Route::is('dewormers.edit') || Route::is('feeds.index') || Route::is('feeds.create') || Route::is('feeds.edit') ||  Route::is('feed-estimations.index') || Route::is('feed-estimations.create') || Route::is('feed-estimations.edit') || Route::is('sires.index') || Route::is('sires.create') || Route::is('sires.edit') || Route::is('diseases.index') || Route::is('diseases.create') || Route::is('diseases.edit') || Route::is('lab-test.index') || Route::is('lab-test.create') || Route::is('lab-test.edit') || Route::is('medicine_groups.index') || Route::is('medicine_groups.create') || Route::is('medicine_groups.edit') || Route::is('medicines.index') || Route::is('medicines.create') || Route::is('medicines.edit') || Route::is('booking_value.index') || Route::is('assess.table.view') ? 'active' : ''); ?>">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('farm.list')): ?>
                            <a href="<?php echo e(route('farms.index')); ?>"
                               class="title-small <?php echo e(Route::is('farms.index') || Route::is('farms.create') || Route::is('farms.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.farms')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('herd.list')): ?>
                            <a href="<?php echo e(route('herds.index')); ?>"
                               class="title-small <?php echo e(Route::is('herds.index') || Route::is('herds.create') || Route::is('herds.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.heads')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lot.list')): ?>
                            <a href="<?php echo e(route('lots.index')); ?>"
                               class="title-small <?php echo e(Route::is('lots.index') || Route::is('lots.create') || Route::is('lots.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.lots')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('tag.list')): ?>
                            <a href="<?php echo e(route('tags.index')); ?>"
                               class="title-small <?php echo e(Route::is('tags.index') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.tags')); ?></span></a>

                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('breed.list')): ?>
                            <a href="<?php echo e(route('breeds.index')); ?>"
                               class="title-small <?php echo e(Route::is('breeds.index') || Route::is('breeds.create') || Route::is('breeds.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.breeds')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('vaccine.list')): ?>
                            <a href="<?php echo e(route('vaccines.index')); ?>"
                               class="title-small <?php echo e(Route::is('vaccines.index') || Route::is('vaccines.create') || Route::is('vaccines.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.vaccine')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dewormer.list')): ?>
                            <a href="<?php echo e(route('dewormers.index')); ?>"
                               class="title-small <?php echo e(Route::is('dewormers.index') || Route::is('dewormers.create') || Route::is('dewormers.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.dewormers')); ?></span></a>
                        <?php endif; ?>










                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sire.list')): ?>
                            <a href="<?php echo e(route('sires.index')); ?>"
                               class="title-small <?php echo e(Route::is('sires.index') || Route::is('sires.create') || Route::is('sires.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.sires')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('disease.list')): ?>
                            <a href="<?php echo e(route('diseases.index')); ?>"
                               class="title-small <?php echo e(Route::is('diseases.index') || Route::is('diseases.create') || Route::is('diseases.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.diseases')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lab test.list')): ?>
                            <a href="<?php echo e(route('lab-test.index')); ?>"
                               class="title-small <?php echo e(Route::is('lab-test.index') || Route::is('lab-test.create') || Route::is('lab-test.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.lab_test')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('medicine group.list')): ?>
                            <a href="<?php echo e(route('medicine_groups.index')); ?>"
                               class="title-small <?php echo e(Route::is('medicine_groups.index') || Route::is('medicine_groups.create') || Route::is('medicine_groups.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.medicine_groups')); ?></span></a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('medicine.list')): ?>
                            <a href="<?php echo e(route('medicines.index')); ?>"
                               class="title-small <?php echo e(Route::is('medicines.index') || Route::is('medicines.create') || Route::is('medicines.edit') ? 'active ' : ''); ?>"><span
                                    class="sub-menu-name"><?php echo e(__('messages.medicines')); ?></span></a>
                        <?php endif; ?>
                        <a href="<?php echo e(route('booking_value.index')); ?>"
                           class="title-small <?php echo e(Route::is('booking_value.index') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.book_values')); ?></span></a>
                        <a href="<?php echo e(route('assess.table.view')); ?>"
                           class="title-small <?php echo e(Route::is('assess.table.view') ? 'active ' : ''); ?>"><span
                                class="sub-menu-name"><?php echo e(__('messages.assess_value')); ?></span></a>
                    </div>
                </div>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('action peremeter.view')): ?>
                    <a href="<?php echo e(route('app-settings.index')); ?>"
                       class="collapse-item-single title-small text-500 <?php echo e(Route::is('app-settings.index') ? 'active ' : ''); ?>"><i
                            class="app-settings-ico"></i><span
                            class="menu-name"><?php echo e(__('messages.app_settings')); ?></span></a>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>
</div>
<?php /**PATH D:\laragon\www\practice\ml_firm\resources\views/backend/partials/sidebar.blade.php ENDPATH**/ ?>