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

Info Management - {{ $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 }}
@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
@csrf
Preview @if( isset($approval->is_deleted) && $approval->is_deleted == '0') @endif
Status : {{ $record->status ?? ''}}
@if($record->status == 'Submitted')
Take Action On Record
@csrf
@endif
Basic Information
@if(( isset($record->record_type) && $record->record_type == "video"))
Name {{ $record->name }}
youtube url {{ $record->youtube_url }}
Youtube Url Lang2 {{ $record->youtube_url_lang2 }}
Meta-Title {{ $record->meta_title }}
Meta-Title Lang2 {{ $record->meta_title_lang2 }}
Meta Description {!! html_entity_decode($record->meta_description) !!}
Meta Description lang2 {!! html_entity_decode($record->meta_description_lang2) !!}
Meta Keyword {{ $record->meta_keyword }}
Meta Keyword Lang2 {{ $record->meta_keyword_lang2 }}
Url Identifier {{ $record->url_identifier }}
Url Identifier Lang2 {{ $record->url_identifier_lang2 }}
@elseif(( isset($record->record_type) && $record->record_type == "article"))
Name {{ $record->name }}
Title {{ $record->title }}
Title lang2 {{ $record->title_lang2 }}
Sub-Title {{ $record->sub_title }}
Sub-Title Lang2 {{ $record->sub_title_lang2 }}
Description {!! html_entity_decode($record->description) !!}
Description lang2 {!! html_entity_decode($record->description_lang2) !!}
Display Style {{ $record->displayStyle }}
Meta-Title {{ $record->meta_title }}
Meta-Title Lang2 {{ $record->meta_title_lang2 }}
Meta Description {!! html_entity_decode($record->meta_description) !!}
Meta Description lang2 {!! html_entity_decode($record->meta_description_lang2) !!}
Meta Keyword {{ $record->meta_keyword }}
Meta Keyword Lang2 {{ $record->meta_keyword_lang2 }}
Meta Url {{ $record->url_identifier }}
@else
Name {{ $record->name }}
Title {{ $record->title }}
Title lang2 {{ $record->title_lang2 }}
Sub-Title {{ $record->sub_title }}
Sub-Title Lang2 {{ $record->sub_title_lang2 }}
Description {!! html_entity_decode($record->description) !!}
Description lang2 {!! html_entity_decode($record->description_lang2) !!}
Display Style {{ $record->displayStyle }}
Display Width {{ $record->displayWidth }}
Link Type {{ $record->more_info_link_type }}
Link Title {{ $record->more_info_title }}
Link URL {{ $record->more_info_link }}
@endif
Files
@if(isset($record->image) && $record->image !="") @else @endif @if(isset($record->image_lang2) && $record->image_lang2 !="") @else @endif
Image Image Lang 2--
Image Lang2 Image Lang 2--
Entities
@foreach($approvals as $val) @if( $val->status == 'Approved') @endif @endforeach
S No Type Entity Code Dis Loc 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 ?? '-' }}
@csrf
Entities Pending
@foreach($approvals as $val) @php $roles = getApprovalRolesByEntity($val->entity_code); @endphp @if($roles['approvalcontentTabs'] && $val->status == 'Submitted') @endif @endforeach
All S No Type Entity Code Dis Loc 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($record->status == 'Approved')
@endif
Assign To Lists
@csrf
@foreach($get_pending_lists as $val) @endforeach
S No Type Dis Loc Importance Submit Date Submit By
{{ $loop->iteration }} {{ $val->entity_code ?? '' }} {{ $val->display_location ?? '-' }} {{ $val->display_importance ?? '-' }} {{ clientDateFormat($val->created_at, 'Y-m-d H:i') }} {{ $val->createdBy->name ?? '-' }}
@if(isset($record->status, $record->record_type) && in_array($record->record_type, ['video', 'article']))
@csrf
Rows @if(isset($record->status, $record->record_type) && $record->created_by == Auth::user()->id && !in_array($record->status, ['Approved', 'Reject', 'Rejected']) && in_array($record->record_type, ['video', 'article'])) @endif
@if(isset($record->status, $record->record_type) && $record->created_by == Auth::user()->id && !in_array($record->status, ['Approved', 'Reject', 'Rejected']) && in_array($record->record_type, ['video', 'article'])) @endif @foreach($get_cms_rows as $val) @if(isset($record->status, $record->record_type) && $record->created_by == Auth::user()->id && !in_array($record->status, ['Approved', 'Reject', 'Rejected']) && in_array($record->record_type, ['video', 'article'])) @endif @endforeach
S No Name Type Panel Display Location Display Importance Is Active Action
{{ $loop->iteration }} {{ $val->row_name ?? '-' }} {{ $val->row_content_inner_style ?? '-' }} {{ $val->use_in_panel ?? '-' }} {{ $val->display_location ?? '-' }} {{ $val->display_importance ?? '-' }} {{ $val->status ?? '-' }}
@endif
@endsection @push('scripts') @endpush