# | @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') | @if($type != 1 || $manage)@lang('mof.requested_by') | @endif @if($type == 3 || $manage)@lang('mof.decision_by') | @endif @if($manage)@lang('mof.modified_by') | @endif @if($manage == false)@lang('mof.action') | @endif
---|---|---|---|---|---|---|---|---|---|---|---|
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))
![]() ![]() @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))
![]() ![]() @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 | @if($type != 1 || $manage){{$policy->requestedBy->full_name}} | @endif @if($type == 3 || $manage)@isset($policy->decisionBy) {{$policy->decisionBy->full_name}} @else Decision Pending @endisset | @endif @if($manage)@isset($policy->modifiedBy) {{$policy->modifiedBy->full_name}} @else Modification Pending @endisset | @endif @if($manage == false)
@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
|
@endif
No Records Found |