@extends('layouts.app') @section('title', __('role.edit_role')) @section('content')

@lang( 'role.edit_role' )

@component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => action('RoleController@update', [$role->id]), 'method' => 'PUT', 'id' => 'role_form' ]) !!}
{!! Form::label('name', __( 'user.role_name' ) . ':*') !!} {!! Form::text('name', str_replace( '#' . auth()->user()->business_id, '', $role->name) , ['class' => 'form-control', 'required', 'placeholder' => __( 'user.role_name' ) ]); !!}
@if(in_array('service_staff', $enabled_modules))

@lang( 'lang_v1.user_type' )

@show_tooltip(__('restaurant.tooltip_service_staff'))
@endif

@lang( 'role.user' )


@lang( 'user.roles' )


@lang( 'role.supplier' )


@lang( 'role.customer' )


@lang( 'business.product' )

@show_tooltip(__('lang_v1.view_purchase_price_tooltip'))

@if(in_array('purchases', $enabled_modules) || in_array('stock_adjustment', $enabled_modules) )

@lang( 'role.purchase' )

@show_tooltip(__('lang_v1.purchase_payments'))

@endif

@lang( 'sale.pos_sale' )

@if(in_array('pos_sale', $enabled_modules))
@endif

@lang( 'sale.sale' )

@if(in_array('add_sale', $enabled_modules))
@endif
@show_tooltip(__('lang_v1.sell_payments'))
@if(in_array('types_of_service', $enabled_modules))
@endif

@lang( 'lang_v1.shipments' )


@lang( 'cash_register.cash_register' )


@lang( 'role.brand' )


@lang( 'role.tax_rate' )


@lang( 'role.unit' )


@lang( 'category.category' )


@lang( 'role.report' )

@if(in_array('purchases', $enabled_modules) || in_array('add_sale', $enabled_modules) || in_array('pos_sale', $enabled_modules))
@endif
@if(in_array('expenses', $enabled_modules))
@endif

@lang( 'role.settings' )

@if(in_array('expenses', $enabled_modules))
@endif

@lang( 'role.dashboard' )


@lang( 'account.account' )


@if(in_array('booking', $enabled_modules))

@lang( 'restaurant.bookings' )


@endif

@lang( 'lang_v1.access_selling_price_groups' )

@if(count($selling_price_groups) > 0) @foreach($selling_price_groups as $selling_price_group)
@endforeach @endif
@if(in_array('tables', $enabled_modules))

@lang( 'restaurant.restaurant' )

@endif @include('role.partials.module_permissions')
{!! Form::close() !!} @endcomponent
@endsection