@foreach ($categoriesRows as $c)
{{-- {{dd($categoriesRows)}} --}}
@php
$iconUrl = $c->category_icon == -1 ? $c->custom_icon_link : 'https://everve.net/assets-v2/img/' . SocialIcons::where('icon_id', $c->category_icon)->pluck('icon_code')->first() . '.svg';
@endphp
{{ $c->category_name }} |
@foreach ($services as $service)
@php
$current_curr = current_currency();
$price = $service['service_price'];
$average_time = '';
if ($service['average_time'] != '') {
$average_time = explode(
' ',
$service['average_time'],
);
$time = '';
if ($average_time[0] != '00') {
$time =
$average_time[0] . ' ' . $average_time[1];
}
if ($average_time[3] != '00') {
$time .=
' ' .
$average_time[2] .
' ' .
$average_time[3];
}
$average_time = $time;
} else {
$average_time = 'Not available';
}
$description =
'';
@endphp
{{-- {{dd($service);}} --}}
@if ($c->category_id == $service['category_id'])
{{ $service['service_id'] }} |
{{ $service['service_name'] }} |
{{ $price }} |
{{ $service['service_min'] }} |
{{ $service['service_max'] }} |
{{ $average_time }} |
|
@endif
@endforeach
@endforeach