@extends('layouts.admin') @section('title', 'Charging Point View - EV Charging Network') @section('breadcrumb_title', 'Charging Points') @section('breadcrumb_sub_title', 'View') @section('page_title', 'Charging Point View') @php $status = $chargingPoint->status; @endphp @if ($status == 0) @section('breadcrumb_link', route('charging-points.requests')) @else @section('breadcrumb_link', route('charging-points.index')) @endif @section('content')
@if ($status == 0) Back @else Back @endif
Charging Point Details

This charging point has been merged into the main charging point below.

@if ($status == 2) Merged @elseif($status == 0) Under Review @elseif($status == 1) Verified @elseif($status == 3) Rejected @elseif($status == 4) Inactive @endif
@if ($chargingPoint->location_image_url) location_image @else

No Location Image

@endif

{{ $chargingPoint->name }}

{{ $chargingPoint->description ?? '' }}


Specifications
Latitude
{{ $chargingPoint->lattitude ?? 'N/A' }}
Longitude
{{ $chargingPoint->longitude ?? 'N/A' }}
Plug Types
@if($chargingPoint->plugTypes && $chargingPoint->plugTypes->count() > 0)
@foreach($chargingPoint->plugTypes as $index => $plugType) @if($index % 3 == 0)
@endif
{{ $plugType->name }} x{{ $plugType->pivot->quantity }}
@endforeach
@else N/A @endif
Network
{{ $chargingPoint->network->name ?? 'N/A' }}
Power Output
{{ $chargingPoint->powerOutput->name ?? 'N/A' }}
Operating Hours
@if ($chargingPoint->timeLines && $chargingPoint->timeLines->count() > 0) @php $is24_7 = $chargingPoint->timeLines->count() === 1 && $chargingPoint->timeLines->first()->name === '24/7' && $chargingPoint->timeLines->first()->from === '00:00:00' && $chargingPoint->timeLines->first()->to === '23:59:00'; @endphp @if ($is24_7)
Open 24/7
@else
@foreach ($chargingPoint->timeLines as $timeLine) @endforeach
{{ $timeLine->name }} @if ($timeLine->from === '00:00:00' && $timeLine->to === '23:59:00') 24 Hours @elseif($timeLine->from === $timeLine->to) Closed @else {{ date('H:i', strtotime($timeLine->from)) }} - {{ date('H:i', strtotime($timeLine->to)) }} @endif
@endif @else
Open 24/7
@endif
Price
{{ $chargingPoint->free_to_use ? 'Free' : 'LKR ' . $chargingPoint->payment_price }}
Access
{{ $chargingPoint->access_type ?? 'Public' }}
Access Instructions
@if ($chargingPoint->access_instructions)
{{ $chargingPoint->access_instructions ?? 'N/A' }}
@else No access instructions available @endif
Additional Notes
@if ($chargingPoint->additional_notes)
{{ $chargingPoint->additional_notes ?? 'N/A' }}
@else No additional notes available @endif
Amenities
@if ($chargingPoint->amenities && $chargingPoint->amenities->count() > 0) @foreach ($chargingPoint->amenities as $amenity)
{{ $amenity->name }}
@endforeach @else
No amenities available
@endif
@if ($status == 2)
Main Charging Point Details
@if ($chargingPoint->mergedTo)
@if ($chargingPoint->mergedTo->status == 0) Under Review @elseif($chargingPoint->mergedTo->status == 1) Verified @elseif($chargingPoint->mergedTo->status == 2) Merged @elseif($chargingPoint->mergedTo->status == 3) Rejected @else Unknown @endif
@endif
@if ($chargingPoint->mergedTo)
@if ($chargingPoint->mergedTo->location_image_url) main_location_image @else

No Location Image

@endif

{{ $chargingPoint->mergedTo->name }}

{{ $chargingPoint->mergedTo->description ?? '' }}


Specifications
Plug Types
@if($chargingPoint->mergedTo->plugTypes && $chargingPoint->mergedTo->plugTypes->count() > 0)
@foreach($chargingPoint->mergedTo->plugTypes as $index => $plugType) @if($index % 3 == 0)
@endif
{{ $plugType->name }} x{{ $plugType->pivot->quantity }}
@endforeach
@else N/A @endif
Network
{{ $chargingPoint->mergedTo->network->name ?? 'N/A' }}
Power Output
{{ $chargingPoint->mergedTo->powerOutput->name ?? 'N/A' }}
Operating Hours
@if ($chargingPoint->mergedTo->timeLines && $chargingPoint->mergedTo->timeLines->count() > 0) @php $is24_7 = $chargingPoint->mergedTo->timeLines->count() === 1 && $chargingPoint->mergedTo->timeLines->first() ->name === '24/7' && $chargingPoint->mergedTo->timeLines->first() ->from === '00:00:00' && $chargingPoint->mergedTo->timeLines->first() ->to === '23:59:00'; @endphp @if ($is24_7)
Open 24/7
@else
@foreach ($chargingPoint->mergedTo->timeLines as $timeLine) @endforeach
{{ $timeLine->name }} @if ($timeLine->from === '00:00:00' && $timeLine->to === '23:59:00') 24 Hours @elseif($timeLine->from === $timeLine->to) Closed @else {{ date('H:i', strtotime($timeLine->from)) }} - {{ date('H:i', strtotime($timeLine->to)) }} @endif
@endif @else
Open 24/7
@endif
Price
{{ $chargingPoint->mergedTo->free_to_use ? 'Free' : 'LKR ' . $chargingPoint->mergedTo->payment_price }}
Access
{{ $chargingPoint->mergedTo->access_type ?? 'Public' }}
Amenities
@if ($chargingPoint->mergedTo->amenities && $chargingPoint->mergedTo->amenities->count() > 0) @foreach ($chargingPoint->mergedTo->amenities as $amenity)
{{ $amenity->name }}
@endforeach @else
No amenities available
@endif
Access Instructions
@if ($chargingPoint->mergedTo->access_instructions)
{{ $chargingPoint->mergedTo->access_instructions ?? 'N/A' }}
@else No access instructions available @endif
Additional Notes
@if ($chargingPoint->mergedTo->additional_notes)
{{ $chargingPoint->mergedTo->additional_notes ?? 'N/A' }}
@else No additional notes available @endif
@else
Main charging point not found

The main charging point this was merged into could not be found.

@endif
@endif @if ($status == 0)
Other Charging Points

Manage duplicate charging point requests for review and approval.

Showing 1 to 10 of {{ $chargingPoint->duplicateChargingPoints->count() }} results
@foreach ($chargingPoint->duplicateChargingPoints as $duplicateChargingPoint)
{{ $duplicateChargingPoint->name }}

{{ $duplicateChargingPoint->description ?? 'Location not specified' }}

Plug Types
@if($duplicateChargingPoint->plugTypes && $duplicateChargingPoint->plugTypes->count() > 0)
@foreach($duplicateChargingPoint->plugTypes as $index => $plugType) @if($index % 3 == 0)
@endif
{{ $plugType->name }} x{{ $plugType->pivot->quantity }}
@endforeach
@else N/A @endif
Network
{{ $duplicateChargingPoint->network->name ?? 'N/A' }}
Power Output
{{ $duplicateChargingPoint->powerOutput->name ?? 'N/A' }}
Access
{{ $duplicateChargingPoint->access_type ?? 'Public' }}
Access Instructions
@if ($duplicateChargingPoint->access_instructions)
{{ $duplicateChargingPoint->access_instructions ?? 'N/A' }}
@else
No access instructions available
@endif
Additional Notes
@if ($duplicateChargingPoint->additional_notes)
{{ $duplicateChargingPoint->additional_notes ?? 'N/A' }}
@else
No additional notes available
@endif
Operating Hours
@if ($duplicateChargingPoint->timeLines && $duplicateChargingPoint->timeLines->count() > 0) @php $is24_7 = $duplicateChargingPoint->timeLines->count() === 1 && $duplicateChargingPoint->timeLines->first() ->name === '24/7' && $duplicateChargingPoint->timeLines->first() ->from === '00:00:00' && $duplicateChargingPoint->timeLines->first() ->to === '23:59:00'; @endphp @if ($is24_7)
24/7
@else
@foreach ($duplicateChargingPoint->timeLines as $timeLine) @endforeach
{{ $timeLine->name }} @if ($timeLine->from === '00:00:00' && $timeLine->to === '23:59:00') 24h @elseif($timeLine->from === $timeLine->to) Closed @else {{ date('H:i', strtotime($timeLine->from)) }}-{{ date('H:i', strtotime($timeLine->to)) }} @endif
@endif @else
24/7
@endif
Price
{{ $duplicateChargingPoint->free_to_use ? 'Free' : 'LKR ' . $duplicateChargingPoint->payment_price }}
Amenities
@if ($duplicateChargingPoint->amenities && $duplicateChargingPoint->amenities->count() > 0) @foreach ($duplicateChargingPoint->amenities as $amenity)
{{ $amenity->name }}
@endforeach @else
No amenities available
@endif
EXIF Valid
GPS Match
@if ($duplicateChargingPoint->location_image_url)
Location image
@endif @if ($duplicateChargingPoint->images && $duplicateChargingPoint->images->count() > 0) @foreach ($duplicateChargingPoint->images->take(2) as $image)
Charging point image
@endforeach @endif
@endforeach
@endif
@endsection @section('scripts') @endsection