@extends('admin.layout.master') @section('content')

{{ ucwords($artist->name) }}

Back {{-- Add Service --}}

Detailed Reports


{{$artist->phone}}

{{$artist->address}}

Email: {{$artist->email}}

City: {{ucwords($artist->city)}}

Address: {{$artist->address}}

Total Reviews: {{$artist->reviews->count()}}

Services: {{$artist->userservices->count()}}

Services Provided


@if(!empty($artist->userservices)) @foreach ($artist->userservices->unique('service_id') as $key => $service) @if (!empty($service->subservices)) {{ ucwords($service->services->name) }}
    @php $childs = App\Models\ArtistsServices::with('subservices') ->where('service_id', $service->service_id) ->where('user_id', $service->user_id) ->get(); @endphp @foreach ($childs as $childKey => $child) @php $user = Auth::user(); if (!empty($user)) { $cartService = App\Models\CartServices::with('cart') ->whereHas('cart', function ($query) use ($user, $artist) { $query->where('user_id', $user->id)->where('vender_id', $artist->id); }) ->where('subservice_id', $child->subservice_id) ->first(); } $cartService = App\Models\CartServices::with('cart') ->where('subservice_id', $child->subservice_id) ->first(); @endphp
  • {{ ucwords($child->subservices->name) ?? 'No Service' }}
    {{ $child->duration }} Mins

    ₹{{ $service->price }}

  • @endforeach
@endif @endforeach @else No Services Available! @endif
@endsection