<div class="dropdown CRM_dropdown">
    <button class="btn btn-secondary dropdown-toggle" type="button"
            id="dropdownMenu2" data-bs-toggle="dropdown"
            aria-haspopup="true"
            aria-expanded="false">
        {{trans('common.Action')}}
    </button>
    <div class="dropdown-menu dropdown-menu-right"
         aria-labelledby="dropdownMenu2">
@php
$course= $query->course;
 @endphp
        <a class="dropdown-item"
           target="_blank"
           href="{{courseDetailsUrl(@$course->id, @$course->type, @$course->slug) }}"
            >
            {{trans('frontend.Frontend')}} {{trans('common.View')}}
        </a>
        <a class="dropdown-item btn-modal"
           href="{{route('store.product.show', [$query->id])}}"
           data-container="#commonModal" type="button">
            {{trans('common.View')}}
        </a>
        @if (permissionCheck('store.product.edit'))
            <a href="{{route('store.product.edit', [$query->id])}}" class="dropdown-item">
                {{trans('common.Edit')}}
            </a>
        @endif




        @if (permissionCheck('store.product.destroy'))
            <a onclick="confirm_modal('{{route('store.product.destroy', $query->id)}}');"
               class="dropdown-item edit_brand">{{__('common.Delete')}}</a>
        @endif


    </div>
</div>
