@extends('layouts.user-app') @section('content')

Estimation Details

@foreach($estimationDetail->userPayment as $payment) @if($payment->status == 'paid') Download Invoice @endif @if($payment->status == 'paid') @if($payment->payment_type == 'full_payment') @php $hasFullPayment = true; @endphp @elseif($payment->payment_type == 'advance_payment') @php $hasAdvancePayment = true; @endphp @elseif($payment->payment_type == 'remaining_payment') @php $hasRemainingPayment = true; @endphp @endif @endif @endforeach @if($hasFullPayment) Paid @elseif($hasAdvancePayment && $hasRemainingPayment) Paid @elseif($hasAdvancePayment) Remaining Payment @else Pay @endif @if($estimationDetail->userPayment) Receipt @endif

Estimation Information

  • {{$estimationDetail->created_at->diffForHumans()}}
    • @foreach($estimationDetail->services as $service) {{$service->title ?? ''}}, @endforeach
    • @if(is_object($decodedContent) && property_exists($decodedContent, 'other_service')) @foreach($decodedContent->other_service as $service)
      {{ $service->Service }} @endforeach @endif {{-- @foreach($decodedContent->other_service as $service)--}} {{--
      --}} {{-- {{ $service->Service }}--}} {{-- @endforeach--}} {{--
    • --}}
  • {{$estimationDetail->estimation_time ?? ''}}
  • {{$estimationDetail->need_financing ?? ''}}
  • @foreach($estimationDetail->emailUser->where('type', '==', 'userPayment') as $email) @php $emailContent = json_decode($email->content); @endphp
  • ${{$emailContent->serviceAdvanceFees ?? ''}}
  • @endforeach @foreach($estimationDetail->emailUser->where('type', '==', 'userPayment') as $email) @php $emailContent = json_decode($email->content); @endphp
  • ${{$emailContent->serviceTotalFees ?? ''}}
  • @endforeach


Images

@if($decodedImages!=null) @foreach($decodedImages as $images) @endforeach @endif
@endsection