Home Forums GetFund – A Professional Laravel Crowdfunding Platform hide "my campaign" on administrato section Reply To: hide "my campaign" on administrato section

#1180

Dear @mr999

To hide My Campaigns menu at admin login, you’ve to set a condition, please follow the instruction.

Go to /root/resources/views/admin/menu.blade.php open it with a code editor, find the below code block

<li>
                <a href="#"><i class="fa fa-bullhorn"></i> @lang('app.my_campaigns')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{route('my_campaigns')}}">@lang('app.my_campaigns')</a> </li>
                    <li>  <a href="{{route('start_campaign')}}">@lang('app.start_a_campaign')</a> </li>
                    <li>  <a href="{{route('my_pending_campaigns')}}">@lang('app.pending_campaigns')</a> </li>
                </ul>
            </li>

Replace this with below code block

            @if(!$auth_user->is_admin())
                <li>
                    <a href="#"><i class="fa fa-bullhorn"></i> @lang('app.my_campaigns')<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>  <a href="{{route('my_campaigns')}}">@lang('app.my_campaigns')</a> </li>
                        <li>  <a href="{{route('start_campaign')}}">@lang('app.start_a_campaign')</a> </li>
                        <li>  <a href="{{route('my_pending_campaigns')}}">@lang('app.pending_campaigns')</a> </li>
                    </ul>
                </li>
            @endif

Then it will be removed from the admin dashboard

Best regards