@php
$data = json_decode($template->body, true);
if (isset($message) && $message->template_params) {
$data = json_decode($message->template_params, true);
}
@endphp
@if ($data['media']['type'] != 0 && !empty($data['media']['path']))
@if ($data['media']['type'] == '1')
 }})
@elseif ($data['media']['type'] == '2')
@php $mime = @mime_content_type(public_path($data['media']['path'])); @endphp
@endif
@endif
@if (!empty($data['title']))