{{ $title }}

{{__('admin.Add New')}}
@if($services->count() > 0) @foreach ($services as $service)
@php $images = null; // Try to decode JSON $decoded = json_decode($service->image, true); if (json_last_error() === JSON_ERROR_NONE && is_array($decoded)) { $images = $decoded; // multiple images case } @endphp @if($images) {{-- Multiple images loop --}} @foreach($images as $img) Service Image @endforeach @else {{-- Single image case --}} Service Image @endif

{{ $service->name }}

{{__('admin.Price')}} : {{ $currency_icon->icon }}{{ $service->price }}

{{__('admin.Category')}} : {{ $service->category->name }}

@if ($service->make_featured == 1 || $service->make_popular == 1)

{{__('admin.Highlight')}} : @if ($service->make_featured == 1) {{__('admin.Featured')}} @endif @if ($service->make_featured == 1 && $service->make_popular == 1) , @endif @if ($service->make_popular == 1) {{__('admin.Popular')}} @endif

@endif

{{__('admin.Status')}} : @if ($service->is_banned == 1) {{__('admin.Banned')}} @elseif ($service->approve_by_admin == 0) {{__('admin.Awaiting for approval')}} @else @if ($service->status == 1) {{__('admin.Active')}} @else {{__('admin.Inactive')}} @endif @endif

{{__('admin.Provider')}}: {{ $service->provider->name }}

{{__('admin.Edit')}} @if ($service->totalOrder == 0) {{__('admin.Remove')}} @else {{__('admin.Remove')}} @endif {{__('admin.View')}}
@endforeach
{{ $services->links() }}
@else

{{__('admin.Service not found!')}}

@endif