@component('mail::message') # {{ match($status) { 'active' => 'Your Ad is Now Active!', 'sold' => 'Your Ad Has Been Sold!', 'declined' => 'Your Ad Has Been Declined', 'verified' => 'Your Ad Has Been Verified!', default => 'Ad Status Update' } }} Hello **{{ $user->name }}**, @switch($status) @case('active') Your ad titled **{{ $ad->title }}** is now **active** and visible to all users on the platform. @break @case('sold') Congratulations! Your ad titled **{{ $ad->title }}** has been successfully marked as **sold**. @break @case('verified') Good news! Your ad titled **{{ $ad->title }}** has been **verified** and is now live. @break @case('declined') Unfortunately, your ad titled **{{ $ad->title }}** has been **declined**. @if(!empty($ad->feedback)) **Feedback:** {{ $ad->feedback }} @endif @break @default Your ad titled **{{ $ad->title }}** has an update regarding its status. @endswitch @if($status === 'declined') @component('mail::button', ['url' => route('user.ads.edit',$ad->id), 'color' => 'error']) Edit Your Ad @endcomponent @elseif($ad->details_url) @component('mail::button', ['url' => $ad->details_url, 'color' => 'success']) View Your Ad @endcomponent @endif Thank you for trusting **{{ config('app.name') }}**. Best regards, **The {{ config('app.name') }} Team** @endcomponent