@php $clientName = $taskDetails['success']['data']['client_name']; $nameParts = explode(' ', $clientName); $firstName = $nameParts[0]; // First name $lastInitial = isset($nameParts[1]) ? strtoupper(substr($nameParts[1], 0, 1)) : ''; // First letter of the last name @endphp

{{ $firstName }} {{ $lastInitial }}

#{{$taskDetails['success']['data']['project_id']}}

Project Details

{{$taskDetails['success']['data']['project_details']}}

Project Images

@foreach($taskDetails['success']['data']['project_images'] as $image) pro-img @endforeach

Address

location

{{$taskDetails['success']['data']['project_address']}}

@if($taskDetails['success']['data']) @if($taskDetails['success']['data']['job_status'] = '3')
@php $total = $taskDetails['success']['data']['total']; $pricingType = $taskDetails['success']['data']['pricing_type']; $rate = $taskDetails['success']['data']['service_provider']['rate']; $hours = $taskDetails['success']['data']['hours']; $expenses = $taskDetails['success']['data']['expenses_rate']; $tip = $taskDetails['success']['data']['tip']; // Set labels based on job type and total $cancellationText = ''; if ($total > 0) { if ($pricingType == 'fixed') { $cancellationText = 'Cancellation Charges 50%'; } elseif ($pricingType == 'hourly') { $cancellationText = 'Cancellation Charges 1 hrs'; } $headerText = 'Price Details (Cancellation Fees)'; } else { $headerText = 'Price Details (No cancellation charges)'; } @endphp

{{ $headerText }}


# Service

Cost

@if($pricingType == 'fixed')

1. Fixed Rate

${{ $rate }}

@else

1. Hourly Rate

${{ $rate }}/hr

@endif
@if($pricingType == 'hourly')

2. Hours Worked

{{ $hours }} hrs

3. Your Total

${{ $hours * $rate }}

@endif

{{ $pricingType == 'hourly' ? '4.' : '2.' }} Expenses

${{ $expenses }}

{{ $pricingType == 'hourly' ? '5.' : '3.' }} Tip

${{ $tip }}


@if($total > 0)

Total ({{ $cancellationText }})

${{ $total }}

@else

Total

${{ $total }}

@endif
@endif @endif