@extends('layouts.app') @push('styles') @endpush @section('content') @if(Auth::check() && !empty(Auth::user()->user_type) && in_array(Auth::user()->user_type, ['VENDOR', 'CUSTOMER'])) @if(Auth::user()->user_type == 'CUSTOMER') @endif @if(Auth::user()->user_type == 'VENDOR') @endif @else
@if($can_see_stickers) @endif
{{-- Whether --}}

Weather Forecast

@if(isset($weather['error']) && $weather['error'])
{{ $weather['message'] ?? 'Unable to fetch weather data.' }}
@else
{{ $weather['current_weather']['image_path']['icon'] }}
{{ $weather['current_weather']['temperature'] }} {{ $weather['current_weather_units']['temperature'] }}
{{ $weather['location']['place_name'] ?? '' }}, {{ $weather['location']['city'] ?? 'Unknown' }}, {{ $weather['location']['country'] ?? '' }}
Wind: {{ $weather['current_weather']['windspeed'] }} {{ $weather['current_weather_units']['windspeed'] }}
Code: {{ $weather['current_weather']['weathercode'] }} {{ $weather['current_weather_units']['weathercode'] }}
Weather
{{ \Carbon\Carbon::parse($weather['current_weather']["time"])->format('D,M j g:i A'); }}
{{ $weather['current_weather']['image_path']['label'] }}

@php $temps = $weather['daily']['temperature_2m_max']; $dates = $weather['daily']['time']; $count = count($temps); $max = max($temps); $min = min($temps); @endphp @for($i = 0; $i < $count; $i++) @php $x = ($i / ($count - 1)) * 100; $y = 80 - (($temps[$i] - $min) / ($max - $min)) * 60; $day = \Carbon\Carbon::parse($dates[$i])->day; // Example: 17, 18, 19, 20 if($x == 0){ $x =2; } if($x ==100){ $x =98; } @endphp {{ $day }} @if($i > 0) @php $prevX = (($i - 1) / ($count - 1)) * 100; $prevY = 80 - (($temps[$i - 1] - $min) / ($max - $min)) * 60; if($prevX == 0){ $prevX =2; } @endphp @endif {{-- {{ $day }} --}} @endfor
@foreach($weather['daily']['time'] as $i => $date) @php $image = \AppHelper::instance()->getWeatherInfo($weather['daily']['weathercode'][$i]) @endphp
{{ \Carbon\Carbon::parse($date)->shortDayName }}
{{ $image['icon'] }}
{{-- --}}
{{ $weather['daily']['temperature_2m_max'][$i] }}
{{ $weather['daily']['temperature_2m_min'][$i] }}
@endforeach
@endif
{{-- Whether End--}} {{-- Calender --}}

Calendar

{{--
{!! optional(\App\ProEdgeModel\Announcement::getLast())->Content !!}
--}} {{-- New Lead --}}

{{$title_lead_table}}

@if(!empty($leads) && $leads->count() > 0) @foreach ($leads as $lead) @endforeach @else @endif
Contact Location Lead Source Info
{{ $lead?->contact?->full_name }} {{ $lead?->contact?->_address() ?? '' }} {{ $lead?->sourceType?->Name ?? '' }} @if ($phone = $lead?->contact?->primary_phone) @else @endif    @if (!empty($lead->Email) || !empty(optional($lead->contact)->Email)) @php $email = optional($lead->contact)->Email ?? $lead->Email; @endphp @else @endif
No New leads found.
@endif @endsection