@extends('includes.layout') @section('content')
@if (session()->has('success'))
{{ session()->get('success') }}
@endif
{{ ucwords($user->name) }} {{-- {{$user->email}} --}}
Personal Details
@csrf
@if ($errors->has('phone')) {{ $errors->first('phone') }}. @endif
{{--
@foreach ($latestServices as $key => $latestService) @endforeach
--}} {{--
@foreach ($latestServices as $key => $latestService) @endforeach
--}}
Add Services
@csrf
@foreach ($userservices as $key => $userservice) @endforeach
Sr. No. Service Sub Services Gender Duration Price Action
{{ $key + 1 }} {{ ucwords($userservice->services->name) }} {{ ucwords($userservice->subservices->name) ?? '' }} {{ $userservice->gender }} {{ $userservice->duration }} {{ $userservice->price }}
Booking
@if (!empty($bookinglist)) @foreach ($bookinglist as $key => $bookings) @endforeach @else Data Not Found @endif
Sr. No. Service Discount Total Price Booking Date Scheduled Username Phone Transaction Id Order Status Action
{{ $key + 1 }} @php $i = 1 @endphp @foreach ($bookings->BookedServices as $key => $service) {{ $i++ }} . {{ $service->Service->name }} ({{ $service->service_id }})
@endforeach
₹ {{ $bookings->discount ?? 0 }} ₹ {{ $bookings->total_price }} {{ $bookings->created_at }} {{ $bookings->scheduled_date }} {{ $bookings->user->name }} {{ $bookings->user->phone }} {{-- {{ $bookings->salon->name }} ({{ $bookings->saloon_id }}) --}} {{ $bookings->transaction_id }} @if($bookings->order_status == 'pending') {{ $bookings->order_status }} @elseif($bookings->order_status == 'cancelled') {{ $bookings->order_status }} @elseif($bookings->order_status == 'completed') {{ $bookings->order_status }} @else @endif
Earning

₹{!! Helper::totalEarning($user->id) ?? 0 !!}

@if($bookinglist) @foreach($bookinglist as $earningKey => $bookinglistearning) @if($bookinglistearning->order_status == "completed") @endif @endforeach @endif
#Sr. No. User Name Paid Amount Services Service Date Status
{{$earningKey+1}} {{ ucwords($bookinglistearning->user->name)}} ₹{{$bookinglistearning->total_price}} {{$bookinglistearning->services_count}} {{$bookinglistearning->scheduled_date}} {{$bookinglistearning->order_status}}
{{-- booking Modal --}} @endsection