Action
{{-- LEAD --}} @if ($crud->entity_name == 'ticket') @include('vendor.backpack.crud.buttons.act_show') @if ($entry->deleted_at) @include('vendor.backpack.crud.buttons.lead.act_restore') @else
@canany(['all-leads', 'lead-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-leads', 'lead-remark']) @include('vendor.backpack.crud.buttons.lead.act_remark') @endcanany @include('vendor.backpack.crud.buttons.lead.act_appointment') @canany(['all-leads', 'lead-convert'])
@include('vendor.backpack.crud.buttons.lead.act_convert_to_project') @include('vendor.backpack.crud.buttons.lead.act_convert_to_quotation') @endcanany @include('vendor.backpack.crud.buttons.lead.act_duplicate_lead')
@canany(['all-leads', 'lead-delete'])
@include('vendor.backpack.crud.buttons.lead.act_void') @endcanany @endif @endif @if ($crud->entity_name == 'task') @include('vendor.backpack.crud.buttons.act_show') @canany(['all-appointments', 'appointment-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @include('vendor.backpack.crud.buttons.act_goto_calendar') @canany(['all-appointments', 'appointment-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- END LEAD --}} {{-- SALES AND DOCUMENTS --}} @if ($crud->entity_name == 'sales-item') @canany(['all-sales-items', 'sales-item-create']) @include('vendor.backpack.crud.buttons.sales-item.act_create_children') @endcanany {{-- @include('vendor.backpack.crud.buttons.sales-item.act_show_children') --}}
@include('vendor.backpack.crud.buttons.act_show') @canany(['all-sales-items', 'sales-item-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-sales-items', 'sales-item-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'sales-item-children' || $crud->entity_name == 'sales-item-all') @include('vendor.backpack.crud.buttons.act_show') @canany(['all-sales-items', 'sales-item-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @if ($crud->entity_name == 'sales-item-all')
@include('vendor.backpack.crud.buttons.sales-item-children.add_sales_item_margin_multiple') @endif @canany(['all-sales-items', 'sales-item-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'quotation') @include('vendor.backpack.crud.buttons.act_show')
@if ($entry->status == 'approved') @canany(['quotation-accept']) @include('vendor.backpack.crud.buttons.quotation.act_accept')
@endcanany @endif @if ($entry->status == 'requested') @canany(['quotation-approve']) @include('vendor.backpack.crud.buttons.quotation.act_approve') @include('vendor.backpack.crud.buttons.quotation.act_decline')
@endcanany @include('vendor.backpack.crud.buttons.quotation.act_revision_history') @elseif($entry->status == 'draft' || $entry->status == 'declined-draft') @canany('quotation-submit') @include('vendor.backpack.crud.buttons.quotation.act_request_approval') @endcan
@elseif($entry->status == 'approved' || $entry->status == 'accepted') {{-- @include('vendor.backpack.crud.buttons.quotation.act_convert_to_agreement') --}} @include('vendor.backpack.crud.buttons.quotation.act_convert_to_invoice') @endif @include('vendor.backpack.crud.buttons.quotation.act_duplicate_quotation')
@include('vendor.backpack.crud.buttons.quotation.act_print') @canany(['all-quotations', 'quotation-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @if ($entry->status == 'void') @canany(['all-quotations', 'quotation-restore'])
@include('vendor.backpack.crud.buttons.act_restore') @endcanany @else @canany(['all-quotations', 'quotation-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @endif @if ($crud->entity_name == 'agreement') @include('vendor.backpack.crud.buttons.act_show')
@if ($entry->status == 'approved') @include('vendor.backpack.crud.buttons.agreement.act_convert_to_invoice') @canany(['all-agreements', 'agreement-accept']) @include('vendor.backpack.crud.buttons.agreement.act_accept')
@endcanany @endif @if ($entry->status == 'requested') @canany(['all-agreements', 'agreement-approve']) @include('vendor.backpack.crud.buttons.agreement.act_approve') @include('vendor.backpack.crud.buttons.agreement.act_decline')
@endcanany @include('vendor.backpack.crud.buttons.agreement.act_revision_history') @elseif($entry->status == 'draft' || $entry->status == 'declined-draft') @canany(['agreement-submit']) @include('vendor.backpack.crud.buttons.agreement.act_request_approval') @endcanany
@endif @include('vendor.backpack.crud.buttons.agreement.act_print') @canany(['all-agreements', 'agreement-update']) @include('vendor.backpack.crud.buttons.agreement.act_update') @endcanany @if ($entry->status == 'void') @canany(['agreement-restore'])
@include('vendor.backpack.crud.buttons.act_restore') @endcanany @else @canany(['agreement-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @endif @if ($crud->entity_name == 'variation-order') @include('vendor.backpack.crud.buttons.act_show') @if ( $entry->status == 'draft' || $entry->status == 'declined-draft' || $entry->status == 'requested' || $entry->status == 'declined') @canany(['variation-order-submit']) @include('vendor.backpack.crud.buttons.variation-order.act_request_approval') @endcanany @canany(['variation-order-decline']) @if ($entry->status != 'declined') @include('vendor.backpack.crud.buttons.variation-order.act_decline') @endif @endcanany
@elseif($entry->status == 'pending') @canany(['variation-order-approve']) @if ($entry->status != 'void') @include('vendor.backpack.crud.buttons.variation-order.act_approve')
@endif @endcanany @canany(['variation-order-decline']) @if ($entry->status != 'declined') @include('vendor.backpack.crud.buttons.variation-order.act_decline') @endif @endcanany @elseif($entry->status == 'approved' || $entry->status == 'accepted') @canany(['variation-order-accept']) @if ($entry->status != 'void') @include('vendor.backpack.crud.buttons.variation-order.act_accept')
@endif @endcanany @endif @include('vendor.backpack.crud.buttons.variation-order.act_revision_history') @include('vendor.backpack.crud.buttons.variation-order.act_print') @canany(['all-variation-orders', 'variation-order-update']) @if ($entry->status != 'void' && $entry->status != 'accepted')
@include('vendor.backpack.crud.buttons.act_update') @endif @endcanany @if ($entry->status == 'void') @canany(['all-variation-orders', 'variation-order-restore'])
@include('vendor.backpack.crud.buttons.act_restore') @endcanany @else @canany(['all-variation-orders', 'variation-order-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @endif @if ($crud->entity_name == 'invoice') @include('vendor.backpack.crud.buttons.act_show') @include('vendor.backpack.crud.buttons.invoice.act_print') @include('vendor.backpack.crud.buttons.invoice.act_revision_history') @canany(['all-invoices', 'invoice-update'])
@include('vendor.backpack.crud.buttons.act_update') @endcanany @if ($entry->status == 'void') @canany(['all-invoices', 'invoice-restore'])
@include('vendor.backpack.crud.buttons.act_restore') @endcanany @else @canany(['all-invoices', 'invoice-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @endif @if ($crud->entity_name == 'handover') @include('vendor.backpack.crud.buttons.act_show') @include('vendor.backpack.crud.buttons.handover.act_print')
@include('vendor.backpack.crud.buttons.act_update') @canany(['all-handovers', 'handover-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- END SALES AND DOCUMENTS --}} {{-- PROJECT --}} @if ($crud->entity_name == 'project') @canany(['all-projects', 'project-confirm']) @include('vendor.backpack.crud.buttons.project.act_confirm') @endcanany @include('vendor.backpack.crud.buttons.project.act_convert_to_quotation') @canany(['all-projects', 'project-update']) @include('vendor.backpack.crud.buttons.act_update') @include('vendor.backpack.crud.buttons.act_project') @endcanany @if ($entry->status != 'closed' && $entry->picTeam != null) @include('vendor.backpack.crud.buttons.act_goto_pic') @endif @canany(['all-projects', 'project-close']) @if ($entry->status != 'closed')
@include('vendor.backpack.crud.buttons.act_close') @endif @endcanany @if ($entry->status == 'void') @canany(['all-projects', 'project-restore'])
@include('vendor.backpack.crud.buttons.act_restore') @endcanany @else @canany(['all-projects', 'project-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @endif {{-- END PROJECT --}} {{-- USER --}} @if ($crud->entity_name == 'team')
Show All Member
@canany(['all-team-members', 'team-member-create'])
Add New Member
@endcanany @canany(['all-teams', 'team-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-teams', 'team-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'team-member') @canany(['all-team-members', 'team-member-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-team-members', 'team-member-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'User') @canany(['all-users', 'user-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-users', 'user-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'Role') @canany(['all-roles', 'role-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-roles', 'role-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'Permission') @canany(['all-permissions', 'permission-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-permissions', 'permission-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- END USER --}} {{-- CONFIGURATION --}} @if ($crud->entity_name == 'company') @canany(['all-companies', 'company-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-companies', 'company-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- GST MANAGEMENT --}} @if ($crud->entity_name == 'GST') @canany(['all-vendors', 'gst-set-default']) @include('vendor.backpack.crud.buttons.act_set_default_gst') @endcanany @canany(['all-vendors', 'gst-set-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @include('vendor.backpack.crud.buttons.act_show') @canany(['all-vendors', 'gst-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- VENDOR MANAGEMENT --}} @if ($crud->entity_name == 'vendor') @canany(['vendor-active-status']) @include('vendor.backpack.crud.buttons.act_active') @endcanany @canany(['all-vendors', 'vendor-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @include('vendor.backpack.crud.buttons.act_show') @canany(['all-vendors', 'vendor-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'service') @canany(['all-services', 'service-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-services', 'service-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'condition-type') @canany(['all-condition-types', 'condition-type-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-condition-types', 'condition-type-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'property-type') @canany(['all-property-types', 'property-type-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-property-types', 'property-type-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'scope-of-work') @canany(['all-scope-of-works', 'scope-of-work-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-scope-of-works', 'scope-of-work-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'area') @canany(['all-areas', 'area-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-areas', 'area-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'source') @canany(['all-sources', 'source-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-sources', 'source-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'venue') @canany(['all-venues', 'venue-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-venues', 'venue-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'country') @canany(['all-countries', 'country-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-countries', 'country-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'payment-term') @canany(['all-payment-terms', 'payment-term-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-payment-terms', 'payment-term-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'term') @canany(['all-terms', 'term-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-terms', 'term-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'template') @canany(['all-templates', 'template-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-templates', 'template-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif @if ($crud->entity_name == 'remark') @canany(['all-remarks', 'remark-update']) @include('vendor.backpack.crud.buttons.act_update') @endcanany @canany(['all-remarks', 'remark-delete'])
@include('vendor.backpack.crud.buttons.act_delete') @endcanany @endif {{-- END CONFIGURATION --}} {{-- Supplier Invoice --}} @if ($crud->entity_name == 'Supplier Invoice') @include('vendor.backpack.crud.buttons.supplier_invoice.actions') @endif {{-- END OF SUPPLIER INVOICE --}} {{-- Stock Requistion --}} @if ($crud->entity_name == 'Stock Requisition') @include('vendor.backpack.crud.buttons.act_update')
@include('vendor.backpack.crud.buttons.act_delete') @endif {{-- EndStock Requistion --}} {{-- Master Item --}} @if ($crud->entity_name == 'Item Master') @include('vendor.backpack.crud.buttons.act_update')
@include('vendor.backpack.crud.buttons.act_delete') @endif {{-- End Master Item --}} {{-- GRN --}} @if ($crud->entity_name == 'GRN') @include('vendor.backpack.crud.buttons.act_grn') @endif {{-- End GRN --}} {{-- Template Quotation --}} @if ($crud->entity_name == 'template-quotation') @include('vendor.backpack.crud.buttons.act_show')
@include('vendor.backpack.crud.buttons.act_update')
@include('vendor.backpack.crud.buttons.act_delete') @endif