@extends('frontend.layouts.user_panel') @section('panel_content')
@if($notification->type == 'App\Notifications\OrderNotification') @php $orderCode = $notification->data['order_code']; $route = route('purchase_history.details', encrypt($notification->data['order_id'])); $orderCode = "".$orderCode.""; $notifyContent = str_replace('[[order_code]]', $orderCode, $notifyContent); @endphp @elseif($notification->type == 'App\Notifications\PreorderNotification') @php $orderCode = $notification->data['order_code']; $route = route('preorder.order_details', encrypt($notification->data['preorder_id'])); $orderCode = "".$orderCode.""; $notifyContent = str_replace('[[order_code]]', $orderCode, $notifyContent); @endphp @elseif($notification->type == 'App\Notifications\CustomNotification') @php $link = $notification->data['link']; if($link != null){ $notifyContent = "".$notifyContent.""; } @endphp @endif {!! $notifyContent !!}
{{ date("F j Y, g:i a", strtotime($notification->created_at)) }}