@if($manage)
@endif
Loading Please Wait...
@if($type != 1 || $manage) @endif @if($type == 3 || $manage) @endif @if($manage) @endif @if($manage == false) @endif @forelse ($data_change_policy as $policy) @php $existing_value = json_decode($policy->existing_value); $proposed_value = json_decode($policy->proposed_value); @endphp @if($type != 1 || $manage) @endif @if($type == 3 || $manage) @endif @if($manage) @endif @if($manage == false) @endif @empty @endforelse
# @lang('mof.service_type') @lang('transactions.transaction_reference_number') @lang('mof.field_type') @lang('mof.field_name') @lang('mof.existing_value') @lang('mof.proposed_value') @lang('mof.status')@lang('mof.requested_by')@lang('mof.decision_by')@lang('mof.modified_by')@lang('mof.action')
RQ-{{$policy->id}} {{$policy->field->service->name}} @if($policy->field->service->id == "4" || $policy->field->service->id == "5")
@if ($policy->field->service->id == "5") CR-{{$policy->value_id}}
@endif @php $tr_customer = resolve("App\Models\Mof\TransactionCustomer") ->where('transaction_id',$policy->transaction_id) ->where('customer_id',$policy->value_id) ->first(); if(isset($tr_customer->type)) { $tr = resolve('App\Models\Transaction')::where(strtolower(str_replace(' ','_',$tr_customer->type)).'_id',$policy->value_id) ->where('id',$policy->transaction_id) ->first(); } @endphp @isset($tr_customer->type) (@if($tr)Primary @endif{{ucwords(strtolower($tr_customer->type))}}) @endisset @endif
TX-{{$policy->transaction_id}} {{$policy->field->name}} @if ($existing_value) @foreach ($existing_value as $key => $value) @php $key = $key=='file_path'?'Customer Photo':$key; $key = $key=='legacy_file_number'?'File Number':$key; $str = str_replace('_id','',$key); $str = str_replace('_',' ',$str); if($str=='date of birth') { $str = 'Date of Birth'; } elseif($str=='place of birth') { $str = 'Place of Birth'; } else { $str = ucwords($str); } $str=='date of birth'?'Date of Birth':ucwords($str); $str=='place of birth'?'Place of Birth':ucwords($str); @endphp {{ $str }}
@endforeach @endif
field->input_type == 'textarea') class="word-break" @endif> @if ($existing_value) @foreach ($existing_value as $key => $value) @php $str = str_replace('_id','',$key); $str = str_replace('_',' ',$str); $str = ucwords($str); $str = str_replace(' ','',$str); if($str == 'Model') { $str = 'VehicleModel'; } if($str == 'Classification') { $str = 'ClassificationType'; } if($str == 'Area' || $str == 'Zone') { $str = NULL; } $value = isset($value)?$value:'Nil'; $value = $value===NULL?'Nil':$value; if($value != 'Nil') { if(class_exists('App\Models\\'.$str)) { $model = resolve('App\Models\\'.$str)::find($value); if($model) { $value = isset($model->name)?$model->name:$model->Name; } else { $value = $value; } } if(class_exists('App\Models\Vehicle\\'.$str)) { $model = resolve('App\Models\Vehicle\\'.$str)::find($value); if($model) { $value = $model->name; } else { $value = $value; } } if(config()->has('gis.'.$key.'.'.$value)) { $value = config('gis.'.$key.'.'.$value); } if($policy->field->input_type == 'text' && $value != 'Nil') { $value = strtoupper($value); } } @endphp @if ($policy->field->input_type == "file") @if ($value != 'Nil' && Storage::disk('local')->exists($value)) @else @if ($policy->field->fields == 'vehicle_photo') @else @endif @endif @elseif ($policy->field->input_type == 'search') CR-{{$value}} @elseif ($policy->field->input_type == 'longtextarea') @php $transactionId = $policy->transaction_id; @endphp T&C @include('livewire.policy.create._existing_terms_and_conditions_modal') @else {{$value}} @endif
@endforeach @endif
field->input_type == 'textarea') class="word-break" @endif> @if ($proposed_value) @foreach ($proposed_value as $key => $value) @php $str = str_replace('_id','',$key); $str = str_replace('_',' ',$str); $str = ucwords($str); $str = str_replace(' ','',$str); if($str == 'Model') { $str = 'VehicleModel'; } if($str == 'Classification') { $str = 'ClassificationType'; } if($str == 'Area' || $str == 'Zone') { $str = NULL; } $value = isset($value)?$value:'Nil'; $value = $value===NULL?'Nil':$value; if($value != 'Nil') { if(class_exists('App\Models\\'.$str)) { $model = resolve('App\Models\\'.$str)::find($value); if($model) { $value = isset($model->name)?$model->name:$model->Name; } else { $value = $value; } } if(class_exists('App\Models\Vehicle\\'.$str)) { $model = resolve('App\Models\Vehicle\\'.$str)::find($value); if($model) { $value = $model->name; } else { $value = $value; } } if(config()->has('gis.'.$key.'.'.$value)) { $value = config('gis.'.$key.'.'.$value); } if($policy->field->input_type == 'text' && $value != 'Nil') { $value = strtoupper($value); } } @endphp @if ($policy->field->input_type == "file") @if ($value != 'Nil' && Storage::disk('local')->exists($value)) @else @if ($policy->field->fields == 'vehicle_photo') @else @endif @endif @elseif ($policy->field->input_type == 'search') CR-{{$value}} @elseif ($policy->field->input_type == 'longtextarea') @php $transactionId = $policy->transaction_id; @endphp T&C @include('livewire.policy.create._proposed_terms_and_conditions_modal') @else {{$value}} @endif
@endforeach @endif
@if ($policy->status == 'REQUESTED') {{$policy->status}} @elseif ($policy->status == 'CLAIMED') {{$policy->status}} @elseif ($policy->status == 'APPROVED') {{$policy->status}} @elseif ($policy->status == 'REJECTED') {{$policy->status}} @elseif ($policy->status == 'CANCELLED') {{$policy->status}} @elseif ($policy->status == 'MODIFIED') {{$policy->status}} @endif {{$policy->requestedBy->full_name}}@isset($policy->decisionBy) {{$policy->decisionBy->full_name}} @else Decision Pending @endisset@isset($policy->modifiedBy) {{$policy->modifiedBy->full_name}} @else Modification Pending @endisset @if ($decision_menu == 1 && $type == '2' || $modify_menu == 1 && $type == '3') @else @if($type == 1 && $policy->status == 'REQUESTED') @isset($cancelModal[$policy->id]) @include('livewire.policy._cancel_task_confirm') @endisset @endif @if ($type == 2 || $type == 3)
@if ($policy->status == 'CLAIMED') @endif @isset($approveModal[$policy->id]) @include('livewire.policy._approve_task_confirm') @endisset @isset($rejectModal[$policy->id]) @include('livewire.policy._reject_task_confirm') @endisset
@endif @endif
No Records Found
@isset($data_change_policy)
{{ $data_change_policy->links() }}
@endisset