@php $isEdit = $isEdit ?? 0; $isAutomated = $isAutomated ?? 0; $isPopup = $isPopup ?? 0; $isSend = $isSend ?? 0; $automatedTypes = config("system.automated_types"); $dispatchTypes = config("system.notification_dispatch_type"); if ($isAutomated == 1) { $message = $automated->smsTemplate ?? null ; $failMessage = $automated->sms_template_id == 0 ? "발송할 알림톡을 설정해주세요" : "" ; $isDisabled = $automated->activated; } else { $failMessage = $message?->fail_message; $isDisabled = $message?->activated; } $dispatch = $message?->smsDispatches; @endphp
$isDisabled != 1 && $isEdit == 0]) style="--message: '{{ $isEdit == 0 ? $failMessage : "" }}'; {{ $isEdit == 1 ? "min-height: 700px; " : "" }}" > @if($isEdit == 0)
{{ $isAutomated == 1 ? $automatedTypes[$automated->trigger_event] . " | " : "" }} {{ $message?->notificationCategory->name }}
@if ($dispatch?->is_advertise == 1) @endif {{ $dispatch?->name }}
{{ $isDisabled == 1 ? "활성" : "비활성" }}
@if ($dispatch)
$dispatch?->message_type == 'talk' , 'badge-success' => $dispatch?->message_type == 'sms' ])> {!! $dispatch?->message_type == "sms" ? '' : '' !!} {{ $dispatch?->dispatch_type ? $dispatchTypes[$dispatch?->dispatch_type] : "" }}
@endif
@else @if ($isSend)
@endif
0/2000 byte 텍스트형
@endif
($message?->smsTemplateButtons?->count() > 0 || $message?->attachments) ]) >
@if($isEdit == 0 && ($message?->smsTemplateButtons?->count() > 0 || $message?->attachments))
@if ($message?->smsTemplateButtons?->count() > 0)
@foreach ($message?->smsTemplateButtons as $button) @endforeach
@endif @if ( $message?->attachments )
attachments->s3_key)) src="{{ app(\S3Helper::class)->getPublicUrl($message->attachments->s3_key) }}" @endif>
@endif
@elseif ($isEdit == 1)
* 파일은 1개까지 업로드 가능하며, 총 500KB 이내의 가로 500px 이상,가로:세로 비율 2:1의 JPG, JPEG 형식의 파일만 업로드 할 수 있습니다.
attachments->s3_key)) src="{{ app(\S3Helper::class)->getPublicUrl($message->attachments->s3_key) }}" @endif class="" id="preview_img" >
@endif
@if ($isEdit == 0 ) @endif