@extends('frontend.layout.master') @section('site_title', __('Order Details')) @section('style') @endsection @section('content')
#000{{ $order_details->id }}

@if($order_details->is_project_job == 'project') {{ $order_details?->project->title ?? '' }} @elseif($order_details->is_project_job == 'job') {{ $order_details?->job->title ?? '' }} @else {{ __('Custom order')}} @endif

@if($order_details->is_fixed_hourly == 'hourly' && $order_details->status == 1 && $all_histories->total() >=1) @php $urlType = 'order'; @endphp @endif
{{ $order_details->created_at->diffForHumans() }}
@if($order_details->status === 3)

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

@else @php $earnings = \App\Models\OrderMilestone::where('order_id',$order_details->id)->where('status',2)->sum('price'); @endphp

{{ float_amount_with_currency_symbol($earnings) }}

@endif {{ __('Earned balance means how much amount you have received for this order.') }}

{{ __('Earned Balance') }}

@if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)

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

{{ __('Hourly rate means how much amount client will pay for each hour after complete the order.') }}

{{ __('Hourly Rate') }}

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

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

@else

{{ site_currency_symbol() }} 0

@endif {{ __('Pending amount means how much amount you will get after complete this order.') }}

{{ __('Pending Balance') }}

@endif @if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)
{{ $order_details?->job->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.') }}

{{ __('Estimated Hours') }}

@else
{{ float_amount_with_currency_symbol($order_details->commission_amount) }} {{ __('Commission amount means how much amount admin will get from this order.') }}

{{ __('Commission Amount') }}

@endif @if($order_details->is_fixed_hourly == 'hourly' && $order_details->status != 3)
{{ float_amount_with_currency_symbol($order_details->price) }} {{ __('The approximate budget indicates the expected payment for this order. This amount may vary depending on the rate and the estimated working hours.') }}

{{ __('Approximate Budget') }}

@else
{{ float_amount_with_currency_symbol($order_details->price) }} {{ __('Total budget means how much client will pay for this order.') }}

{{ __('Total Budget') }}

@endif
{{ $order_details?->user->first_name }} {{ $order_details?->user->last_name }} @if(Cache::has('user_is_online_' . $order_details?->user->id)) {{ __('Active') }} @else {{ __('Inactive') }} @endif

@if($order_details?->user?->user_state?->state != null) {{ $order_details?->user?->user_state?->state }}, @endif {{ $order_details?->user?->user_country?->country }} @if($order_details?->user?->user_verified_status == 1) @endif

{{ __('Member since') }}
{{ $order_details?->user->created_at->toFormattedDateString() ?? '' }}
{{ __('Total Job') }}
{{ $order_details?->user?->user_jobs?->count() }}
@php $total_job = App\Models\JobPost::where('user_id', $order_details?->user->id)->count(); $total_order = App\Models\Order::where('user_id', $order_details?->user->id) ->where('status', 3) ->count(); $hiring_rate = ''; if ($total_job > 0) { $hiring_rate = ($total_order * 100) / $total_job; } @endphp @if ($hiring_rate >= 1)
{{ __('Hire rate') }}
@if($hiring_rate > 100) 100% @else {{ round($hiring_rate) ?? 0 }}% @endif
@endif
  • {{ __('Work History') }}
  • {{ __('Total Work Hours') }}
@foreach($all_histories as $history) @endforeach
{{ __('Start Date') }} {{ __('End Date') }} {{ __('Work Hours') }} {{ __('Note') }}
{{ $history->start_date }} {{ $history->end_date }} {{ $history->hours_worked }} @if($history?->order->status != 3) {{ __('Edit') }} @include('hourlyjob::client.time-modal') @endif {{ $history->notes }}
{{ $all_histories->links() }}
@php $decimalHours = number_format($total_work_time,2); $hours = floor($decimalHours); $minutes = ($decimalHours - $hours) * 60; @endphp @if($hours >= (int)(get_static_option('minimum_hour_for_realtime_earning') ?? 1))
{{ __('Work Time So Far:') }} @php echo $hours . 'h ' . round($minutes) . 'm'; @endphp

{{ __('Earning So Far:') }} {{ float_amount_with_currency_symbol($order_total_amount_calculate) }}
@else
{{ __('No earnings yet to show.') }}
@endif
@endsection @section('script') @include('hourlyjob::client.contract-js') @endsection