@if($orders->total() < 1)

{{ __('No Order') }}

@else @foreach($orders as $order) @php $rating = \App\Models\Rating::select('id','order_id','rating')->where('order_id',$order->id)->where('sender_type',1)->first(); $freelancerRating = \App\Models\Rating::where('order_id', $order->id) ->where('sender_type', 2) ->where('sender_id', auth()->id()) ->first(); @endphp
#000{{ $order->id }}

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

@if($rating && !$freelancerRating) {{ __('New Review') }} @elseif($rating && $freelancerRating) {{ __('Reviewed') }} @endif
{{ $order->created_at->diffForHumans() }}
@if($order->is_fixed_hourly == 'hourly') {{ __('Hourly rate') }}
{{ float_amount_with_currency_symbol($order?->job->hourly_rate) }}
@else {{ __('Order budget') }}
{{ float_amount_with_currency_symbol($order->price) }}
@endif
@if($order->delivery_time)
{{ __('Delivery Time') }}
@endif
@if($order->status == 0) @endif
@if($order->status == 0) @else @if($order->status != 5 && $order->status != 4 && $order->status != 3 && $order->status != 7) @endif @endif @if($order->status == 3) @if($order?->freelancer?->is_suspend !=1) {{ __('Invoice') }} @endif @endif @if($rating && !$freelancerRating) {{ __('Reply to Review') }} @endif {{ __('View Order') }}
@endforeach @endif