@extends('layouts.app') @section('content')

Role : edit

Page for edit new Role

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
Divisi only affected on Warehouse and Production Work Order so they can select data based on this Divisi. You may leave this blank if youre make role outside Warehouse and Production Work Order. @error('divisi_code')
{{ $message }}
@enderror
Permissions

@error('permission')
{{ $message }}
@enderror

Master Data

@foreach ($permissions->where('menu', 'master') as $master)
name, $rolePermissions)) checked @endif>
@endforeach

Bussiness Unit

@foreach ($permissions->where('menu', 'marketing') as $marketing)
name, $rolePermissions)) checked @endif>
@endforeach

PPIC

@foreach ($permissions->where('menu', 'ppic') as $ppic)
name, $rolePermissions)) checked @endif>
@endforeach

Purchase Request

@foreach ($permissions->where('menu', 'purchase_request') as $purchaseRequest)
name, $rolePermissions)) checked @endif>
@endforeach

Purchasing

@foreach ($permissions->where('menu', 'purchasing') as $purchasing)
name, $rolePermissions)) checked @endif>
@endforeach

Bea Cukai

@foreach ($permissions->where('menu', 'bea_cukai') as $beaCukai)
name, $rolePermissions)) checked @endif>
@endforeach

Warehouse

@foreach ($permissions->where('menu', 'warehouse') as $warehouse)
name, $rolePermissions)) checked @endif>
@endforeach

Accounting

@foreach ($permissions->where('menu', 'finance') as $finance)
name, $rolePermissions)) checked @endif>
@endforeach

Production

@foreach ($permissions->where('menu', 'production') as $production)
name, $rolePermissions)) checked @endif>
@endforeach

Subcon

@foreach ($permissions->where('menu', 'subcon') as $subcon)
name, $rolePermissions)) checked @endif>
@endforeach

Report

@foreach ($permissions->where('menu', 'report') as $report)
name, $rolePermissions)) checked @endif>
@endforeach

Report Bea Cukai

@foreach ($permissions->where('menu', 'report-bea-cukai') as $reportBeaCukai)
name, $rolePermissions)) checked @endif>
@endforeach

Log

@foreach ($permissions->where('menu', 'log') as $log)
name, $rolePermissions)) checked @endif>
@endforeach
@endsection