Edit
@if($errors->has('actions'))
{!! $errors->first('actions') !!}
@endif
{{--Basic Settings--}}
@if(count($needHelpAttrsVals) > 0)
@foreach ($needHelpAttrs as $attr)
{!! Form::label('Full Name') !!}
{!! Form::text('name', $user->name, ['class' => 'form-control', 'placeholder' => 'Enter full name']) !!}
@if ($errors->has('name'))
{!! $errors->first('name') !!}@endif
{!! Form::label('Email') !!}
{!! Form::text('email', $user->email, ['class' => 'form-control', 'placeholder' => 'Enter email']) !!}
@if ($errors->has('email'))
{!! $errors->first('email') !!}@endif
{!! Form::label('Location') !!}
{!! Form::select('location_id', $locations, $user->location_id, ['class'=> 'form-control'])
!!}
@if ($errors->has('location_id'))
{!! $errors->first('location_id') !!}@endif
{!! Form::label('Status') !!}
{!! Form::select('user_is_exist', [1 => 'Active', 0 => 'Inactive'], $user->user_is_exist, ['class' => 'form-control']) !!}
{!! Form::label('User Avatar') !!}
{!! Form::file('user_avatar') !!}
@if ($errors->has('user_avatar'))
{!! $errors->first('user_avatar') !!}@endif
{!! Form::label('User Role') !!}
{!! Form::select('role_id', $roles, $user->role_id, ['placeholder' => 'Select user role', 'class'=> 'form-control', 'id' => 'role_id']) !!}
@if ($errors->has('role_id'))
{!! $errors->first('role_id') !!}@endif
@if ($errors->has('is_agent'))
{!! $errors->first('is_agent') !!}@endif
{!! Form::label('Password') !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Enter password']) !!}
@if ($errors->has('password'))
{!! $errors->first('password') !!}@endif
{!! Form::label('Allow Change Given Delivery Data') !!}
{!! Form::select('allowed_change_given_delivery_data', [1 => 'Yes', 0 => 'No'], $user->allowed_change_given_delivery_data, ['class' => 'form-control']) !!}
@foreach($actions as $namespace => $controllers)
{{--
@endforeach
@endforeach
{{ $namespace }}
--}} @foreach($controllers as $controller => $methods) @if(in_array($controller, $skipControllers)) @continue @endif| --}} | {{ $controllerSerial++ . '.' }} @if($controller == 'RoleController') {!! 'Role' !!} @elseif($controller == 'PermissionController') {!! 'Permission' !!} @elseif($controller == 'UserProfileController') {!! 'User Profile' !!} @elseif($controller == 'UserController') {!! 'User' !!} @elseif($controller == 'Attribute_setController') {!! 'Attribute Set' !!} @elseif($controller == 'AttributeController') {!! 'Attribute' !!} @elseif($controller == 'LocationController') {!! 'Location' !!} @elseif($controller == 'GroupController') {!! 'Group' !!} @elseif($controller == 'CustomerController') {!! 'Customer' !!} @elseif($controller == 'BrandController') {!! 'Brand' !!} @elseif($controller == 'CategoryController') {!! 'Category' !!} @elseif($controller == 'ColorController') {!! 'Color' !!} @elseif($controller == 'Sub_categoryController') {!! 'Sub Category' !!} @elseif($controller == 'Item_typeController') {!! 'Item Type' !!} @elseif($controller == 'ProductController') {!! 'Product' !!} @elseif($controller == 'SupplierController') {!! 'Supplier' !!} @elseif($controller == 'Sub_item_typeController') {!! 'Sub Item Type' !!} @elseif($controller == 'SliderController') {!! 'Slider' !!} @elseif($controller == 'RightSideController') {!! 'Right Side' !!} @elseif($controller == 'HomepageSectionController') {!! 'Home Page Section' !!} @elseif($controller == 'CmsEditorController') {!! 'CMS Editor' !!} @elseif($controller == 'ShippingMethodController') {!! 'Shipping Method' !!} @elseif($controller == 'ShippingTypeController') {!! 'Shipping Type' !!} @elseif($controller == 'ShippingZoneController') {!! 'Shipping Zone' !!} @elseif($controller == 'ShippingAreaOneController') {!! 'Shipping Area One' !!} @elseif($controller == 'ShippingAreaTwoController') {!! 'Shipping Area Two' !!} @elseif($controller == 'ShippingAreaThreeController') {!! 'Shipping Area Three' !!} @elseif($controller == 'MediaGalleryController') {!! 'Media Gallery' !!} @elseif($controller == 'FooterController') {!! 'Footer' !!} @elseif($controller == 'ProductComparisonController') {!! 'Product Comparison' !!} @elseif($controller == 'CustomerInvRecordsController') {!! 'Customer INV Record' !!} @elseif($controller == 'DesktopBDescController') {!! 'Desktop Builder - Desc' !!} @elseif($controller == 'DesktopBTypeController') {!! 'Desktop Builder - Type' !!} @elseif($controller == 'DesktopBTemplateController') {!! 'Desktop Builder - Template' !!} @elseif($controller == 'OfferController') {!! 'Offer' !!} @elseif($controller == 'OrderController') {!! 'Order' !!} @elseif($controller == 'ScrollController') {!! 'Scroll' !!} @elseif($controller == 'ReviewController') {!! 'Review' !!} @elseif($controller == 'ItemTypeDetailController') {!! 'Item Type Detail' !!} @elseif($controller == 'CategoryHomepageSectionController') {!! 'Category Home Page' !!} @elseif($controller == 'LeftNavsController') {!! 'Category Left Navigation' !!} @elseif($controller == 'UpcomingProductController') {!! 'Upcoming Product' !!} @elseif($controller == 'SitemapController') {!! 'Sitemap' !!} @elseif($controller == 'ProductImageController') {!! 'Product Images' !!} @elseif($controller == 'SettingController') {!! 'SMS Test' !!} @elseif($controller == 'SettingController') {!! 'Mail Test' !!} @elseif($controller == 'InvZoneController') {!! 'INV Zone' !!} @elseif($controller == 'ProductBookController') {!! 'Product Book' !!} @elseif($controller == 'PreorderProductController') {!! 'Pre Order Product' !!} @elseif($controller == 'StoreController') {!! 'Store Page' !!} @elseif($controller == 'SiteSettingController') {!! 'Site Setting' !!} @elseif($controller == 'PointController') {!! 'Point' !!} @elseif($controller == 'VehicleController') {!! 'Vehicle' !!} @elseif($controller == 'DeliveryManController') {!! 'Delivery Man' !!} @elseif($controller == 'DeliveryManVehicleController') {!! 'Delivery Setup' !!} @elseif($controller == 'OrderDeliveryController') {!! 'Order Delivery' !!} @elseif($controller == 'DeliveryPermissionController') {!! 'Delivery Permission' !!} @elseif($controller == 'FspController') {!! 'FSP' !!} @elseif($controller == 'ZoneController') {!! 'Zone' !!} @elseif($controller == 'BranchAddressController') {!! 'Branch Address' !!} @elseif($controller == 'FaqController') {!! 'FAQ' !!} @elseif($controller == 'FaqAssignmentController') {!! 'FAQ Assignment' !!} @elseif($controller == 'ItemTypeGroupController') {!! 'Attribute Group' !!} @elseif($controller == 'SearchReportController') {!! 'Search Report' !!} @elseif($controller == 'CustomerSupportController') {!! 'Customer Support' !!} @else {{ $controller }} @endif | |
|---|---|---|
|
| {{ $method }} | --}} @foreach($actions as $action) @if(in_array($action, $skipMethods)) @continue @endif|
| {{ $attr->name }} | firstWhere('attribute_id', $attr->id))->is_show == 1 ? 'checked' : '' }}> Show | |
| {{ $attr->name }} | Show |
{!! Form::submit('Update',['class' => 'btn btn-warning']) !!}
{!! Form::close() !!}