@extends('backend.layout.master') @section('title', __('Order Details')) @section('style') @endsection @section('content')
@php $mile_stones = \App\Models\OrderMilestone::where('order_id',$order_details->id)->get(); $payable_amount = \App\Models\OrderMilestone::where('order_id',$order_details->id)->where('status','!=',3)->sum('price'); @endphp
@if($order_details->status == 3)

{{ float_amount_with_currency_symbol($order_details->payable_amount) }}

@else

{{ site_currency_symbol() }} 0

@endif

{{ __('Total Paid') }}

{{ __('Total paid means how much amount freelancer get for this order.') }}
@if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)

{{ float_amount_with_currency_symbol($order_details?->job->hourly_rate) }}

{{ __('Hourly Rate') }}

{{ __('Hourly rate means how much amount client will pay for each hour after complete the order.') }}
@else
@if($mile_stones->count() > 0) @if($order_details->status !=3) @php $earnings = \App\Models\OrderMilestone::where('order_id', $order_details->id) ->where('status', 2) ->sum('price'); @endphp

{{ float_amount_with_currency_symbol($payable_amount - $earnings) }}

@else

{{ site_currency_symbol() }} 0

@endif @else @if($order_details->status != 3 && $order_details->status != 4 && $order_details->payment_status != '')

{{ float_amount_with_currency_symbol($order_details->payable_amount) }}

@else

{{ site_currency_symbol() }} 0

@endif @endif

{{ __('Pending Amount') }}

{{ __('Pending amount means how much amount freelancer will get after complete this order.') }}
@endif @if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)

{{ $order_details?->job->estimated_hours }}

{{ __('Estimated Hours') }}

{{ __('Estimated hours refer to the approximate time a client can set for completing the order. The client can adjust this time before accepting the order.') }}
@else

{{ float_amount_with_currency_symbol($order_details->commission_amount) }}

{{ __('Commission Amount') }}

{{ __('Commission amount means how much amount admin will get from this order.') }}
@endif @if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)

{{ float_amount_with_currency_symbol($order_details->price) }}

{{ __('Approximate Budget') }}

{{ __('The approximate budget indicates the expected payment for this order. This amount may vary depending on the rate and the estimated working hours.') }}
@else

{{ float_amount_with_currency_symbol($order_details->transaction_amount) }}

{{ __('Transaction Amount') }}

{{ __('Transaction amount means how much amount user will pay for each transaction.') }}
@endif
@if($order_details?->user->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('profile img') }} @else {{ __('Client Image') }} @endif @else {{ __('AuthorImg') }} @endif {{ __('Client Details') }}
@if($order_details?->freelancer->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('profile img') }} @else {{ __('Client Image') }} @endif @else {{ __('AuthorImg') }} @endif {{ __('Freelancer Details') }}
@if($order_details->rating) @foreach($order_details->rating as $rating) @if($rating->sender_type == 1)
{{ __('Client Rating') }}
{{ $rating->rating }}