{{-- Header --}} @if (config('layout.extras.notifications.dropdown.style') == 'light')
{{-- Title --}}

User Notifications 23 new

{{-- Tabs --}}
@else @php $type = json_decode(Session::get(config('propai.authSessionKey')))->user_type; // $notification = Helper::notifications(); $notification['count'] = 0; @endphp
{{-- Title --}}

User Notifications {{$notification['count']}} new

{{-- Tabs --}}
@endif {{-- Content --}}
{{-- Tabpane 1 --}}
{{-- Scroll --}} @if(($notification['count']))
@if(count($notification['property'])) {{-- Item --}} @foreach($notification['property'] as $item) @php $notify_status = Helper::encryptData($item->notify_status); $url = route('notificationTypeData',['notify_status' => $notify_status]); $text = "$item->prop_count property in "; @endphp @if($item->notify_status==0) @php $text = "In outcode $item->outcode_name, $item->prop_count new property arrived."; $title = "New property"; $class = "danger"; @endphp @elseif($item->notify_status==1) @php $text.="For sale at $item->outcode_name."; $title = "For sale"; $class = "success"; @endphp @elseif($item->notify_status==2) @php $text.= "sold under offer in $item->outcode_name."; $title = "Sold Under Offer"; $class = "warning"; @endphp @elseif($item->notify_status==3) @php $text.= " Withdrawn at $item->outcode_name."; $title = "Withdrawn"; $class = "primary"; @endphp @elseif($item->notify_status==4) @php $text.= " Price Change at $item->outcode_name."; $title = "Price Change"; $class = "success"; @endphp @elseif($item->notify_status==6) @php $text.= " STC at $item->outcode_name."; $title = "STC"; $class = "warning"; @endphp @elseif($item->notify_status==7) @php $text.= " Offer at $item->outcode_name."; $title = "Offer"; $class = "primary"; @endphp @else @php $text.= " Fallen through at $item->outcode_name."; $title = "Fallen through"; $class = "danger"; @endphp @endif
{{-- Symbol --}}
@if($item->notify_status==0) {{Metronic::getSVG("media/svg/icons/Shopping/Box2.svg", "svg-icon-lg svg-icon-danger")}} @elseif($item->notify_status==1) {{Metronic::getSVG("media/svg/icons/Shopping/Sale2.svg", "svg-icon-lg svg-icon-success")}} @elseif($item->notify_status==2) {{Metronic::getSVG("media/svg/icons/Shopping/Sale1.svg", "svg-icon-lg svg-icon-warning")}} @elseif($item->notify_status==3) {{Metronic::getSVG("media/svg/icons/Code/Stop.svg", "svg-icon-lg svg-icon-primary")}} @elseif($item->notify_status==4) {{Metronic::getSVG("media/svg/icons/Shopping/Pound.svg", "svg-icon-lg svg-icon-success")}} @else {{Metronic::getSVG("media/svg/icons/Navigation/Arrow-down.svg", "svg-icon-lg svg-icon-danger")}} @endif
{{-- Text --}}
{{$title}} {{$text}}
@endforeach @endif @if(count($notification['recent_valuation'])) @php $i=0 @endphp @foreach($notification['recent_valuation'] as $item) @php $i++; @endphp @if($i%2==0) @php $class = "success"; @endphp @else @php $class = "danger"; @endphp @endif @if($item->house_number_id) @php $encrpt_id = Helper::encryptData($item->house_number_id); $url = route('propertyDetails',['property_id'=>$encrpt_id,'notification'=>$item->id]); @endphp @else @php $encrpt_id = Helper::encryptData($item->property_history_id); $url = route('propertyHistoryDetails',['property_id'=>$encrpt_id,'notification'=>$item->id]); @endphp @endif
{{-- Symbol --}}
{{Metronic::getSVG("media/svg/icons/Design/Sketch.svg", "svg-icon-lg svg-icon-$class")}}
{{-- Text --}}
Recent Valuation {{$item->address}}
@endforeach @endif @if(count($notification['agent_status'])) @php $i=0 @endphp @foreach($notification['agent_status'] as $item) @php $i++; @endphp @if($i%2==0) @php $class = "primary"; @endphp @else @php $class = "danger"; @endphp @endif @php $encrpt_id = Helper::encryptData($item->house_number_id); $url = route('propertyDetails',['property_id'=>$encrpt_id,'notification'=>$item->id]); @endphp @if($item->notify_status==0) @php $text = "New to market"; @endphp @elseif($item->notify_status==1) @php $text="For sale"; @endphp @elseif($item->notify_status==2) @php $text = "Sold Under Offer"; @endphp @elseif($item->notify_status==3) @php $text = "Withdrawn"; @endphp @elseif($item->notify_status==4) @php $text = "Price Change"; @endphp @elseif($item->notify_status==6) @php $text = "STC"; @endphp @else @php $text = "Offer"; @endphp @endif
{{-- Symbol --}}
{{Metronic::getSVG("media/svg/icons/General/User.svg", "svg-icon-lg svg-icon-$class")}}
{{-- Text --}}
Estate Agent - {{$item->name}} {{$item->name}} change the status {{$text}} of {{$item->address}}
@endforeach @endif
@else
All caught up!
No new notifications.
@endif