@isset($policy) @php $existing_value = json_decode($policy->existing_value); $proposed_value = json_decode($policy->proposed_value); @endphp
@lang('mof.service_type') |
{{$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 |
@lang('transactions.transaction_reference_number') | TX-{{$policy->transaction_id}} |
@lang('mof.field_type') | {{$policy->field->name}} |
@lang('mof.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 |
@lang('mof.existing_value') | 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))
![]() ![]() @endforeach @endif |
@lang('mof.proposed_value') | 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))
![]() ![]() @endforeach @endif |