Shop Detail
Back
Shop Image
Provider: {{ $shop->provider->first_name }} {{ $shop->provider->last_name }}
Shop Name: {{ $shop->shop_name }}
Address: {{ $shop->address }}, {{ $shop->city->name }}, {{ $shop->state->name }}, {{ $shop->country->name }}
Coordinates: {{ $shop->lat }}, {{ $shop->long }}
Registration Number: {{ $shop->registration_number }}
Opening Hours: @php $sitesetup = App\Models\Setting::where('type', 'site-setup') ->where('key', 'site-setup') ->first(); $sitesetupValue = json_decode(optional($sitesetup)->value ?? '{}'); $targetTimezone = isset($sitesetupValue->time_zone) ? trim((string) $sitesetupValue->time_zone) : 'UTC'; $timeFormat = $sitesetupValue->time_format ?? 'H:i'; $sourceTimezone = 'UTC'; $convertFromRawUtc = function ($raw) use ( $sourceTimezone, $targetTimezone, $timeFormat, ) { if (empty($raw)) { return null; } try { return \Carbon\Carbon::parse($raw, $sourceTimezone) ->setTimezone($targetTimezone) ->format($timeFormat); } catch (\Exception $e) { return null; } }; @endphp {{ $convertFromRawUtc($shop->getRawOriginal('shop_start_time')) }} - {{ $convertFromRawUtc($shop->getRawOriginal('shop_end_time')) }}
Contact Number: @if ($shop->contact_country_code) +{{ $shop->contact_country_code }}-{{ $shop->contact_number }} @else {{ $shop->contact_number }} @endif
Email: {{ $shop->email }}
Status: {{ $shop->is_active ? 'Active' : 'Inactive' }}
Services: @if ($shop->services && $shop->services->count())
@foreach ($shop->services as $service) {{ $service->name }} @endforeach
@else No services assigned @endif