@extends('landing-page.layouts.default') @section('content') @php @endphp

{{ $serviceData['service_detail']['name'] }}

  • {{ round($serviceData['service_detail']['total_rating'], 1) }} ({{ $serviceData['service_detail']['total_review'] }} {{ __('messages.reviews') }})
    @if (!empty($serviceData['service_detail']['duration'])) @php $durationParts = explode(':', $serviceData['service_detail']['duration']); $hours = isset($durationParts[0]) ? intval($durationParts[0]) : 0; $minutes = isset($durationParts[1]) ? intval($durationParts[1]) : 0; @endphp @if ($hours > 0 || $minutes > 0)
  • ({{ $hours }} hrs @if ($minutes > 0) {{ $minutes }} min @endif)
  • @endif @endif
{{ __('landingpage.created_by') }}: {{ $serviceData['provider']['display_name'] }}
@if (!empty($serviceData['service_detail']['attchments']))
@else @endif @if (!empty($serviceData['service_detail']['description']))
{{ __('landingpage.about_service') }}

{{ $serviceData['service_detail']['description'] }}

@endif
{{ __('landingpage.about_provider') }}
provider-user
{{ $serviceData['provider']['display_name'] }}
{{ round($serviceData['provider']['providers_service_rating'], 1) }}
({{ $serviceData['provider']['total_service_rating'] }} {{ __('messages.reviews') }})

{{ $serviceData['provider']['description'] }}

{{ __('landingpage.member_since') }}:

{{ date("$date_time->date_format", strtotime($serviceData['provider']['created_at'])) }}

{{ __('landingpage.complet_project') }}:

{{ $completed_services }} {{ __('landingpage.msg_complete_project') }}

@if (!empty($knownLanguageArray))
{{ __('landingpage.languages') }}:

{{ implode(', ', $knownLanguageArray) }}

@endif
@if ($serviceData['serviceaddon'])
{{ __('landingpage.Add-ons') }}
@foreach ($serviceData['serviceaddon'] as $serviceaddon)
@if (isset($serviceaddon['serviceaddon_image']) && $serviceaddon['serviceaddon_image']) service-image @else placeholder-image @endif
{{ $serviceaddon['name'] }}
{{ getPriceFormat($serviceaddon['price']) }}
@endforeach
@endif @if ($serviceData['service_detail']['price'] > 0)
{{ __('landingpage.order_detail') }}
{{ __('messages.service') }}

{{ $serviceData['service_detail']['name'] }}

@if (!empty($serviceData['service_detail']['discount'])) @endif @php $total = $subtotal; @endphp @php $totalTaxAmount = 0; @endphp @if (!empty($serviceData['taxes'])) @php foreach ($serviceData['taxes'] as $tax) { if ($tax['type'] == 'percent') { $totalTaxAmount += ($subtotal * $tax['value']) / 100; } else { $totalTaxAmount += $tax['value']; } } $total = $subtotal + $totalTaxAmount; @endphp @endif
+{{ getPriceFormat($serviceData['service_detail']['price']) }}
-{{ getPriceFormat(($serviceData['service_detail']['price'] * $serviceData['service_detail']['discount']) / 100) }}
{{ __('messages.Subtotal') }}
{{ getPriceFormat($subtotal) }}
@if ($totalTaxAmount > 0) +{{ getPriceFormat($totalTaxAmount) }} @else +{{ getPriceFormat(0) }} @endif
@endif @if (!empty($serviceData['service_detail']['servicePackage']))
{{ __('landingpage.select_service_package') }}
@if (count($serviceData['service_detail']['servicePackage']) > 3) @endif
@auth @else @endauth
@endif @if (!empty($serviceData['service_faq']))
{{ __('landingpage.any_question') }}
@foreach ($serviceData['service_faq'] as $service_faq)
{{ $service_faq['description'] }}
@endforeach
@endif @if ($total_ratings->isNotEmpty())
{{ count($total_ratings) }} {{ __('landingpage.reviews_for') }} {{ $serviceData['service_detail']['name'] }}
@if (count($total_ratings) !== 0) @endif
    @foreach ($serviceData['rating_data'] as $ratingData)
  • comment-user
    {{ date("$date_time->date_format", strtotime($ratingData['created_at'])) }}

    {{ $ratingData['review'] }}

  • @endforeach
@endif @if (!empty($shops) && count($shops) > 0)
{{ __('messages.shops') }}
{{ __('messages.view_all') }}
@foreach ($shops as $shop)
{{ $shop->shop_name }}
@php $siteSetup = json_decode( optional( App\Models\Setting::where( 'type', 'site-setup', ) ->where('key', 'site-setup') ->first(), )->value ?? '{}', ); $targetTz = $siteSetup->time_zone ?? 'UTC'; // e.g. Asia/Kolkata $timeFmt = $siteSetup->time_format ?? 'H:i'; // e.g. g:i A @endphp {{ \Carbon\Carbon::parse($shop->getRawOriginal('shop_start_time'), 'UTC')->setTimezone($targetTz)->format($timeFmt) }} - {{ \Carbon\Carbon::parse($shop->getRawOriginal('shop_end_time'), 'UTC')->setTimezone($targetTz)->format($timeFmt) }}
{{ $shop->address }}, {{ $shop->city->name }}, {{ $shop->state->name }}, {{ $shop->country->name }}
@endforeach
@endif
{{ __('landingpage.related_services') }}
{{ __('messages.view_all') }}
@php $currentServiceId = $serviceData['service_detail']['id']; $filteredRelatedServices = array_filter($serviceData['related_service'], function ( $service, ) use ($currentServiceId) { return $service['id'] !== $currentServiceId && $service['status'] == 1; }); @endphp
{{ __('messages.price') }}
@if ($serviceData['service_detail']['price'] == 0)

Free

@else

{{ getPriceFormat($serviceData['service_detail']['price']) }}

@endif
@if (auth()->check() && auth()->user()->hasRole('user')) @if (empty($favouriteService))
@csrf @if (!empty(auth()->user())) @endif
@else
@csrf @if (!empty(auth()->user())) @endif
@endif @else
@csrf
@endif
@if (auth()->check() && auth()->user()->user_type == 'user') {{ __('messages.continue') }} @else {{ __('messages.continue') }} @endif
@if ($serviceData['service_detail']['is_slot'] == 1)
{{ __('landingpage.available_days') }}
    @foreach ($serviceData['service_detail']['slots'] as $slots)
  • {{ $slots['day'] }}
  • @endforeach
@endif @php $serviceZone = App\Models\ServiceZone::all(); @endphp @if (count($serviceZone) == 0) @if (!empty($serviceData['service_detail']['service_address_mapping']))
{{ __('landingpage.available_location') }}
    @php $hasLocation = false; @endphp @foreach ($serviceData['service_detail']['service_address_mapping'] as $service_address) @if (!empty($service_address['provider_address_mapping']['address'])) @php $hasLocation = true; @endphp
  • {{ $service_address['provider_address_mapping']['address'] }}
  • @endif @endforeach @if (!$hasLocation)
  • {{ __('messages.no_location') }}
  • @endif
@endif @else @if (!empty($serviceData['service_detail']['service_zone_mappings']))
{{ __('landingpage.available_location') }}
    @php $hasZones = false; @endphp @foreach ($serviceData['service_detail']['service_zone_mappings'] as $zoneMapping) @if (!empty($zoneMapping['zone']['name'])) @php $hasZones = true; @endphp
  • {{ $zoneMapping['zone']['name'] }}
  • @endif @endforeach @if (!$hasZones)
  • {{ __('messages.no_zones') }}
  • @endif
@endif @endif
@endsection @section('after_script') @endsection