@extends('layouts.app') @section('content')

{{ $content->title }}

{!! nl2br($content->caption) !!}
{{-- @can('content.changeStatus') --}} Schedule Now {{-- @endcan --}}
Summary
Product {{ $content->product?->name }}
Client {{ $content->product?->client?->name }}
Category {{ $content->category?->title }}
Description {!! $content->caption !!}
Status {!! $content->status_name !!}
Schedule Detail @if (config('constants.content_status_options')[$content->status] == 'Scheduled') {{ $content->release_date }} {{ \Carbon\Carbon::parse($content->release_time)?->format('h:i A') }} @else Not Scheduled @endif

Attachment

@if ($content->creative) @php $fileExtension = pathinfo( $content->creative, PATHINFO_EXTENSION, ); $isImage = in_array(strtolower($fileExtension), [ 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', ]); @endphp @if ($isImage) Attachment Image @else @endif
Download @if ($isImage) @endif
@else

No Attachment Available

@endif
@endsection @push('js') @endpush