@extends('dashboard.layout.master') @section('content')
@include('dashboard.layout.navbar')
Edit Role
@csrf

@foreach($user_managemnt as $item) @php $user = json_decode($role->user_management); @endphp @if($user && in_array($item->id, $user))
@else
@endif @endforeach

@foreach($lots_managemnt as $item) @php $lots = json_decode($role->lots_management); @endphp @if($lots && in_array($item->id, $lots))
@else
@endif @endforeach

@foreach($district_managemnt as $item) @php $district = json_decode($role->district_management); @endphp @if($district && in_array($item->id, $district))
@else
@endif @endforeach

@foreach($tehsil_managemnt as $item) @php $tehsil = json_decode($role->tehsil_management); @endphp @if($tehsil && in_array($item->id, $tehsil))
@else
@endif @endforeach

@foreach($uc as $item) @php $uc = json_decode($role->uc_management); @endphp @if($uc && in_array($item->id, $uc))
@else
@endif @endforeach

@foreach($Role as $item) @php $roles_data = json_decode($role->role_management); @endphp @if($roles_data && in_array($item->id, $roles_data))
@else
@endif @endforeach

@foreach($logs as $item) @php $logs_data = json_decode($role->logs_management); @endphp @if($logs_data && in_array($item->id, $logs_data))
@else
@endif @endforeach

@foreach($form as $item) @php $form_data = json_decode($role->form_management); @endphp @if($form_data && in_array($item->id, $form_data))
@else
@endif @endforeach

@foreach($pdma as $item) @php $pdma_data = json_decode($role->pdma_management); @endphp @if($pdma_data && in_array($item->id, $pdma_data))
@else
@endif @endforeach

@foreach($zone as $item) @php $zone_data = json_decode($role->zone_management); @endphp @if($zone_data && in_array($item->id, $zone_data))
@else
@endif @endforeach

@foreach($finance as $item) @php $finance_data = json_decode($role->finance_management); @endphp @if($finance_data && in_array($item->id, $finance_data))
@else
@endif @endforeach

@foreach($report as $item) @php $report_data = json_decode($role->report_management); @endphp @if($report_data && in_array($item->id, $report_data))
@else
@endif @endforeach

@foreach($bank as $item) @php $bank_data = json_decode($role->bank_management); @endphp @if($bank_data && in_array($item->id, $bank_data))
@else
@endif @endforeach
@php $types = [ 'field_supervisor' => 'In the team of Field Supervisor', 'IP' => 'In the team of IP', 'HRU' => 'In the team of HRU','PSIA'=>'In the team of PSIA', 'HRU_Main'=>'In the team of HRU Main', 'COO'=>'In the team of COO', 'CEO'=>'In the team of CEO' ]; @endphp
Allow to update the status of survey form
Go Back
@if(session('error')) @endif @if(session('success')) @endif @endsection