@if($notificationShowDesign != 'only_text')
{{-- Order Related Notifications --}}
@if ($notification->type == 'App\Notifications\OrderNotification')
@php
$orderCode = $notification->data['order_code'];
$orderCode = "
".$orderCode."";
$notifyContent = str_replace('[[order_code]]', $orderCode, $notifyContent);
@endphp
{{-- Shop Verification Related Notifications --}}
@elseif ($notification->type == 'App\Notifications\ShopVerificationNotification')
@php
if($notification->data['status'] == 'submitted'){
$shopName = "
".$notification->data['name']."";
$notifyContent = str_replace('[[shop_name]]', $shopName, $notifyContent);
}
@endphp
{{-- Shop Product Related Notifications --}}
@elseif ($notification->type == 'App\Notifications\ShopProductNotification')
@php
$product_id = $notification->data['id'];
$product_type = $notification->data['type'];
$lang = env('DEFAULT_LANGUAGE');
$productName = "
".$notification->data['name']."";
$notifyContent = str_replace('[[product_name]]', $productName, $notifyContent);
@endphp
{{-- Seller Payout Notifications --}}
@elseif ($notification->type == 'App\Notifications\PayoutNotification')
@php
$amount = single_price($notification->data['payment_amount']);
$shopName = "
".$notification->data['name']."";
$notifyContent = str_replace('[[shop_name]]', $shopName, $notifyContent);
$notifyContent = str_replace('[[amount]]', $amount, $notifyContent);
@endphp
{{-- Preorder Notifications --}}
@elseif ($notification->type == 'App\Notifications\PreorderNotification' && addon_is_activated('preorder'))
@php
$orderCode = $notification->data['order_code'];
$orderCode = "
".$orderCode."";
$notifyContent = str_replace('[[order_code]]', $orderCode, $notifyContent);
@endphp
@endif
{!! $notifyContent !!}
{{ date('F j Y, g:i a', strtotime($notification->created_at)) }}