@extends('layouts.app') @section('title', __('role.add_role')) @section('content') @lang( 'role.add_role' ) @php $pos_settings = !empty(session('business.pos_settings')) ? json_decode(session('business.pos_settings'), true) : []; @endphp @component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => action([\App\Http\Controllers\RoleController::class, 'store']), 'method' => 'post', 'id' => 'role_add_form' ]) !!} {!! Form::label('name', __( 'user.role_name' ) . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'user.role_name' ) ]); !!} @lang( 'user.permissions' ): @lang( 'lang_v1.others' ) {{ __( 'role.select_all' ) }} @if(in_array('service_staff', $enabled_modules)) {!! Form::checkbox('is_service_staff', 1, false, [ 'class' => 'input-icheck']); !!} {{ __( 'restaurant.service_staff' ) }} @show_tooltip(__('restaurant.tooltip_service_staff')) @endif {!! Form::checkbox('permissions[]', 'view_export_buttons', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_export_buttons' ) }} @lang( 'role.user' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'user.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.user.view' ) }} {!! Form::checkbox('permissions[]', 'user.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.user.create' ) }} {!! Form::checkbox('permissions[]', 'user.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.user.update' ) }} {!! Form::checkbox('permissions[]', 'user.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.user.delete' ) }} @lang( 'user.roles' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'roles.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_role' ) }} {!! Form::checkbox('permissions[]', 'roles.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.add_role' ) }} {!! Form::checkbox('permissions[]', 'roles.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.edit_role' ) }} {!! Form::checkbox('permissions[]', 'roles.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_role' ) }} @lang( 'role.supplier' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[supplier_view]', 'supplier.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_supplier' ) }} {!! Form::radio('radio_option[supplier_view]', 'supplier.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_supplier' ) }} {!! Form::checkbox('permissions[]', 'supplier.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.supplier.create' ) }} {!! Form::checkbox('permissions[]', 'supplier.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.supplier.update' ) }} {!! Form::checkbox('permissions[]', 'supplier.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.supplier.delete' ) }} @lang( 'role.customer' ) @show_tooltip(__('lang_v1.customer_permissions_tooltip')) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[customer_view]', 'customer.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_customer' ) }} {!! Form::radio('radio_option[customer_view]', 'customer.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_customer' ) }} {!! Form::radio('radio_option[customer_view_by_sell]', 'customer_with_no_sell_one_month', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.customer_with_no_sell_one_month' ) }} {!! Form::radio('radio_option[customer_view_by_sell]', 'customer_with_no_sell_three_month', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.customer_with_no_sell_three_month' ) }} {!! Form::radio('radio_option[customer_view_by_sell]', 'customer_with_no_sell_six_month', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.customer_with_no_sell_six_month' ) }} {!! Form::radio('radio_option[customer_view_by_sell]', 'customer_with_no_sell_one_year', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.customer_with_no_sell_one_year' ) }} {!! Form::radio('radio_option[customer_view_by_sell]', 'customer_irrespective_of_sell', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.customer_irrespective_of_sell' ) }} {!! Form::checkbox('permissions[]', 'customer.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.customer.create' ) }} {!! Form::checkbox('permissions[]', 'customer.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.customer.update' ) }} {!! Form::checkbox('permissions[]', 'customer.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.customer.delete' ) }} @lang( 'business.product' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'product.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.product.view' ) }} {!! Form::checkbox('permissions[]', 'product.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.product.create' ) }} {!! Form::checkbox('permissions[]', 'product.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.product.update' ) }} {!! Form::checkbox('permissions[]', 'product.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.product.delete' ) }} {!! Form::checkbox('permissions[]', 'product.opening_stock', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.add_opening_stock' ) }} {!! Form::checkbox('permissions[]', 'view_purchase_price', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.view_purchase_price') }} @show_tooltip(__('lang_v1.view_purchase_price_tooltip')) @if(in_array('purchases', $enabled_modules) || in_array('stock_adjustment', $enabled_modules) ) @lang( 'role.purchase' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[purchase_view]', 'purchase.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_purchase_n_stock_adjustment' ) }} {!! Form::radio('radio_option[purchase_view]', 'view_own_purchase', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.view_own_purchase_n_stock_adjustment') }} {!! Form::checkbox('permissions[]', 'purchase.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.purchase.create' ) }} {!! Form::checkbox('permissions[]', 'purchase.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.purchase.update' ) }} {!! Form::checkbox('permissions[]', 'purchase.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.purchase.delete' ) }} {!! Form::checkbox('permissions[]', 'purchase.payments', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.add_purchase_payment') }} {!! Form::checkbox('permissions[]', 'edit_purchase_payment', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_purchase_payment') }} {!! Form::checkbox('permissions[]', 'delete_purchase_payment', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.delete_purchase_payment') }} {!! Form::checkbox('permissions[]', 'purchase.update_status', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.update_status') }} @endif @if(!empty($common_settings['enable_purchase_requisition'])) @lang( 'lang_v1.purchase_requisition' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[purchase_requisition_view]', 'purchase_requisition.view_all', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_purchase_requisition' ) }} {!! Form::radio('radio_option[purchase_requisition_view]', 'purchase_requisition.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_purchase_requisition' ) }} {!! Form::checkbox('permissions[]', 'purchase_requisition.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.create_purchase_requisition' ) }} {!! Form::checkbox('permissions[]', 'purchase_requisition.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_purchase_requisition' ) }} @endif @if(!empty($common_settings['enable_purchase_order'])) @lang( 'lang_v1.purchase_order' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[purchase_order_view]', 'purchase_order.view_all', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_purchase_order' ) }} {!! Form::radio('radio_option[purchase_order_view]', 'purchase_order.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_purchase_order' ) }} {!! Form::checkbox('permissions[]', 'purchase_order.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.create_purchase_order' ) }} {!! Form::checkbox('permissions[]', 'purchase_order.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.edit_purchase_order' ) }} {!! Form::checkbox('permissions[]', 'purchase_order.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_purchase_order' ) }} @endif @lang( 'sale.pos_sale' ) {{ __( 'role.select_all' ) }} @if(in_array('pos_sale', $enabled_modules)) {!! Form::checkbox('permissions[]', 'sell.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.sell.view' ) }} {!! Form::checkbox('permissions[]', 'sell.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.sell.create' ) }} @endif {!! Form::checkbox('permissions[]', 'sell.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.sell.update' ) }} {!! Form::checkbox('permissions[]', 'sell.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.sell.delete' ) }} {!! Form::checkbox('permissions[]', 'edit_product_price_from_pos_screen', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_product_price_from_pos_screen') }} {!! Form::checkbox('permissions[]', 'edit_product_discount_from_pos_screen', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_product_discount_from_pos_screen') }} {!! Form::checkbox('permissions[]', 'edit_pos_payment', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.add_edit_payment') }} {!! Form::checkbox('permissions[]', 'print_invoice', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.print_invoice') }} {!! Form::checkbox('permissions[]', 'disable_pay_checkout', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_pay_checkout') }} {!! Form::checkbox('permissions[]', 'disable_draft', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_draft') }} {!! Form::checkbox('permissions[]', 'disable_express_checkout', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_express_checkout') }} {!! Form::checkbox('permissions[]', 'disable_discount', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_discount') }} {!! Form::checkbox('permissions[]', 'disable_suspend_sale', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_suspend_sale') }} {!! Form::checkbox('permissions[]', 'disable_credit_sale', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_credit_sale_button') }} {!! Form::checkbox('permissions[]', 'disable_quotation', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_quotation') }} {!! Form::checkbox('permissions[]', 'disable_card', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.disable_card') }} @lang( 'sale.sale' ) @show_tooltip(__('lang_v1.sell_permissions_tooltip')) {{ __( 'role.select_all' ) }} @if(in_array('add_sale', $enabled_modules)) {!! Form::radio('radio_option[sell_view]', 'direct_sell.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_sale' ) }} {!! Form::radio('radio_option[sell_view]', 'view_own_sell_only', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_sell_only' ) }} {!! Form::checkbox('permissions[]', 'view_paid_sells_only', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_paid_sells_only' ) }} {!! Form::checkbox('permissions[]', 'view_due_sells_only', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_due_sells_only' ) }} {!! Form::checkbox('permissions[]', 'view_partial_sells_only', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_partially_paid_sells_only' ) }} {!! Form::checkbox('permissions[]', 'view_overdue_sells_only', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_overdue_sells_only' ) }} {!! Form::checkbox('permissions[]', 'direct_sell.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.add_sell' ) }} {!! Form::checkbox('permissions[]', 'direct_sell.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.update_sale' ) }} {!! Form::checkbox('permissions[]', 'direct_sell.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_sell' ) }} @endif {!! Form::checkbox('permissions[]', 'view_commission_agent_sell', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_commission_agent_sell' ) }} {!! Form::checkbox('permissions[]', 'sell.payments', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.add_sell_payment') }} {!! Form::checkbox('permissions[]', 'edit_sell_payment', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_sell_payment') }} {!! Form::checkbox('permissions[]', 'delete_sell_payment', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.delete_sell_payment') }} {!! Form::checkbox('permissions[]', 'edit_product_price_from_sale_screen', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_product_price_from_sale_screen') }} {!! Form::checkbox('permissions[]', 'edit_product_discount_from_sale_screen', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.edit_product_discount_from_sale_screen') }} {!! Form::checkbox('permissions[]', 'discount.access', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.discount.access') }} @if(in_array('types_of_service', $enabled_modules)) {!! Form::checkbox('permissions[]', 'access_types_of_service', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.access_types_of_service' ) }} @endif {!! Form::checkbox('permissions[]', 'access_sell_return', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.access_all_sell_return' ) }} {!! Form::checkbox('permissions[]', 'access_own_sell_return', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.access_own_sell_return' ) }} {!! Form::checkbox('permissions[]', 'edit_invoice_number', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.add_edit_invoice_number' ) }} @if(!empty($pos_settings['enable_sales_order'])) @lang( 'lang_v1.sales_order' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[so_view]', 'so.view_all', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_so' ) }} {!! Form::radio('radio_option[so_view]', 'so.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_so' ) }} {!! Form::checkbox('permissions[]', 'so.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.create_so' ) }} {!! Form::checkbox('permissions[]', 'so.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.edit_so' ) }} {!! Form::checkbox('permissions[]', 'so.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_so' ) }} @endif @lang( 'sale.draft' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[draft_view]', 'draft.view_all', false, [ 'class' => 'input-icheck']) !!} {{ __( 'lang_v1.view_all_drafts' ) }} {!! Form::radio('radio_option[draft_view]', 'draft.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_drafts' ) }} {!! Form::checkbox('permissions[]', 'draft.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.edit_draft' ) }} {!! Form::checkbox('permissions[]', 'draft.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_draft' ) }} @lang( 'lang_v1.quotation' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[quotation_view]', 'quotation.view_all', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_all_quotations' ) }} {!! Form::radio('radio_option[quotation_view]', 'quotation.view_own', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_own_quotations' ) }} {!! Form::checkbox('permissions[]', 'quotation.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.edit_quotation' ) }} {!! Form::checkbox('permissions[]', 'quotation.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_quotation' ) }} @lang( 'lang_v1.shipments' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[shipping_view]', 'access_shipping', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.access_all_shipments') }} {!! Form::radio('radio_option[shipping_view]', 'access_own_shipping', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.access_own_shipping') }} {!! Form::checkbox('permissions[]', 'access_pending_shipments_only', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.access_pending_shipments_only') }} {!! Form::checkbox('permissions[]', 'access_commission_agent_shipping', false, ['class' => 'input-icheck']); !!} {{ __('lang_v1.access_commission_agent_shipping') }} @lang( 'cash_register.cash_register' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'view_cash_register', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_cash_register' ) }} {!! Form::checkbox('permissions[]', 'close_cash_register', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.close_cash_register' ) }} @lang( 'role.brand' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'brand.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.brand.view' ) }} {!! Form::checkbox('permissions[]', 'brand.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.brand.create' ) }} {!! Form::checkbox('permissions[]', 'brand.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.brand.update' ) }} {!! Form::checkbox('permissions[]', 'brand.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.brand.delete' ) }} @lang( 'role.tax_rate' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'tax_rate.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.tax_rate.view' ) }} {!! Form::checkbox('permissions[]', 'tax_rate.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.tax_rate.create' ) }} {!! Form::checkbox('permissions[]', 'tax_rate.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.tax_rate.update' ) }} {!! Form::checkbox('permissions[]', 'tax_rate.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.tax_rate.delete' ) }} @lang( 'role.unit' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'unit.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.unit.view' ) }} {!! Form::checkbox('permissions[]', 'unit.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.unit.create' ) }} {!! Form::checkbox('permissions[]', 'unit.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.unit.update' ) }} {!! Form::checkbox('permissions[]', 'unit.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.unit.delete' ) }} @lang( 'category.category' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'category.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.category.view' ) }} {!! Form::checkbox('permissions[]', 'category.create', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.category.create' ) }} {!! Form::checkbox('permissions[]', 'category.update', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.category.update' ) }} {!! Form::checkbox('permissions[]', 'category.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.category.delete' ) }} @lang( 'role.report' ) {{ __( 'role.select_all' ) }} @if(in_array('purchases', $enabled_modules) || in_array('add_sale', $enabled_modules) || in_array('pos_sale', $enabled_modules)) {!! Form::checkbox('permissions[]', 'purchase_n_sell_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.purchase_n_sell_report.view' ) }} @endif {!! Form::checkbox('permissions[]', 'tax_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.tax_report.view' ) }} {!! Form::checkbox('permissions[]', 'contacts_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.contacts_report.view' ) }} @if(in_array('expenses', $enabled_modules)) {!! Form::checkbox('permissions[]', 'expense_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.expense_report.view' ) }} @endif {!! Form::checkbox('permissions[]', 'profit_loss_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.profit_loss_report.view' ) }} {!! Form::checkbox('permissions[]', 'stock_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.stock_report.view' ) }} {!! Form::checkbox('permissions[]', 'trending_product_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.trending_product_report.view' ) }} {!! Form::checkbox('permissions[]', 'register_report.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.register_report.view' ) }} {!! Form::checkbox('permissions[]', 'sales_representative.view', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.sales_representative.view' ) }} {!! Form::checkbox('permissions[]', 'view_product_stock_value', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.view_product_stock_value' ) }} @lang( 'role.settings' ) {{ __( 'role.select_all' ) }} {!! Form::checkbox('permissions[]', 'business_settings.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.business_settings.access' ) }} {!! Form::checkbox('permissions[]', 'barcode_settings.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.barcode_settings.access' ) }} {!! Form::checkbox('permissions[]', 'invoice_settings.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'role.invoice_settings.access' ) }} {!! Form::checkbox('permissions[]', 'access_printers', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.access_printers') }} @if(in_array('expenses', $enabled_modules)) @lang( 'lang_v1.expense' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[expense_view]', 'all_expense.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.access_all_expense' ) }} {!! Form::radio('radio_option[expense_view]', 'view_own_expense', false,['class' => 'input-icheck']); !!} {{ __('lang_v1.view_own_expense') }} {!! Form::checkbox('permissions[]', 'expense.add', false, [ 'class' => 'input-icheck']); !!} {{ __( 'expense.add_expense' ) }} {!! Form::checkbox('permissions[]', 'expense.edit', false, [ 'class' => 'input-icheck']); !!} {{ __( 'expense.edit_expense' ) }} {!! Form::checkbox('permissions[]', 'expense.delete', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_expense' ) }} @endif @lang( 'role.dashboard' ) @show_tooltip(__('tooltip.dashboard_permission')) {!! Form::checkbox('permissions[]', 'dashboard.data', true, [ 'class' => 'input-icheck']); !!} {{ __( 'role.dashboard.data' ) }} @lang( 'account.account' ) {!! Form::checkbox('permissions[]', 'account.access', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.access_accounts' ) }} {!! Form::checkbox('permissions[]', 'edit_account_transaction', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.edit_account_transaction' ) }} {!! Form::checkbox('permissions[]', 'delete_account_transaction', false, [ 'class' => 'input-icheck']); !!} {{ __( 'lang_v1.delete_account_transaction' ) }} @if(in_array('booking', $enabled_modules)) @lang( 'restaurant.bookings' ) {{ __( 'role.select_all' ) }} {!! Form::radio('radio_option[bookings_view]', 'crud_all_bookings', false, [ 'class' => 'input-icheck']); !!} {{ __( 'restaurant.add_edit_view_all_booking' ) }} {!! Form::radio('radio_option[bookings_view]', 'crud_own_bookings', false, [ 'class' => 'input-icheck']); !!} {{ __( 'restaurant.add_edit_view_own_booking' ) }} @endif @lang( 'lang_v1.access_selling_price_groups' ) {!! Form::checkbox('permissions[]', 'access_default_selling_price', true, [ 'class' => 'input-icheck']); !!} {{ __('lang_v1.default_selling_price') }} @if(count($selling_price_groups) > 0) @foreach($selling_price_groups as $selling_price_group) {!! Form::checkbox('spg_permissions[]', 'selling_price_group.' . $selling_price_group->id, false, [ 'class' => 'input-icheck']); !!} {{ $selling_price_group->name }} @endforeach @endif @if(in_array('tables', $enabled_modules)) @lang( 'restaurant.restaurant' ) {!! Form::checkbox('permissions[]', 'access_tables', false, [ 'class' => 'input-icheck']); !!} {{ __('lang_v1.access_tables') }} @endif @include('role.partials.module_permissions') @lang( 'messages.save' ) {!! Form::close() !!} @endcomponent @endsection