@extends('layouts.app') @section('content') @php $record = $approval->draft ?? $approval; @endphp

Preview - {{ $approval->draft ? $approval->draft->name : $approval->name }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Name

{{ $approval->draft ? $approval->draft->name : $approval->name }}

Title

{{ $approval->draft ? $approval->draft->title : $approval->title }}

Submitted Date
{{ $approval->draft ? clientDateFormat($approval->draft->created_at, 'Y-m-d H:i') : clientDateFormat($approval->created_at, 'Y-m-d H:i') }}
Submitted By
{{ $approval->draft ? $approval->createdBy->name : $approval->createdByUser->name }}
Remarks
{{ $approval->draft ? $approval->draft->submit_remarks : $approval->submit_remarks }}
Status
{{ $record->status }}
@if($record->status == 'Approved')
Approved Date
{{ $approval->draft ? clientDateFormat($approval->draft->approved_at, 'Y-m-d H:i') : clientDateFormat($approval->approved_at, 'Y-m-d H:i') }}
Approved By
{{ $approval->draft ? $approval->approvedBy->name : $approval->approvedByUser->name }}
Remarks
{{ $approval->draft ? $approval->draft->review_remarks : $approval->review_remarks }}
@endif
Basic Information
Name {{ $record->name }}
Title {{ $record->title }}
Description {!! html_entity_decode($record->description) !!}
Pictures
@if(isset($record->image) && $record->image !="") Image @endif @if(isset($record->image_lang2) && $record->image_lang2 !="") Image Lang2 @endif
Approved Entities
@foreach($approvals as $val) @if($val->status == 'Approved') @endif @endforeach
S No Type Entity Code Location Importance Submit Date Submit By Approval Date Approval By
{{ $loop->iteration }} {{ $val->entity_type }} {{ $val->entity_code }} {{ $val->display_location }} {{ $val->display_importance }} {{ clientDateFormat($val->created_at, 'Y-m-d H:i') }} {{ $val->createdBy->name }} {{ clientDateFormat($val->approved_at, 'Y-m-d H:i') }} {{ $val->approvedBy->name }}
Pending Entities
@foreach($approvals as $val) @if($val->status == 'Submitted') @endif @endforeach
S No Type Entity Code Location Importance Submit Date Submit By
{{ $loop->iteration }} {{ $val->entity_type }} {{ $val->entity_code }} {{ $val->display_location }} {{ $val->display_importance }} {{ clientDateFormat($val->created_at, 'Y-m-d H:i') }} {{ $val->createdBy->name }}
@if(isset($record->record_type) && in_array($record->record_type, ['video','article']))
Rows
@foreach($get_cms_rows as $val) @endforeach
S No Name Type Panel Location Importance Active
{{ $loop->iteration }} {{ $val->row_name }} {{ $val->row_content_inner_style }} {{ $val->use_in_panel }} {{ $val->display_location }} {{ $val->display_importance }} {{ $val->status }}
@endif
@endsection