@extends('front.layouts.master-auth') @section('meta-sec') {{-- Open Graph Meta Tags for Social Sharing --}} @if($project->images && count($project->images) > 0) @else @endif {{-- Twitter Card Meta Tags --}} @if($project->images && count($project->images) > 0) @endif @endsection @section('content')
@if($project->status == \App\Models\Project::PENDING && $project->user_id == auth()->id()) @if($project->payment_type == \App\Models\Project::PAYMENT_TYPE_PAID && !$project->is_featured_payment)
@lang('Attention')! @lang('Payment is still not occurred.Please complete the payment before proceeding.')
@else
@lang('Attention')! @lang('Project is still pending approval. Please wait for admin approval before proceeding.')
@endif @endif
@if(isset($breadcrumbs) && is_array($breadcrumbs) && count($breadcrumbs) > 0) @endif

{{ $project->title }}

@if(auth()->check() && auth()->user()->isFreelancer()) @php $offerExist = $project->offers->where('user_id',auth()->id())->first(); @endphp @if(!$offerExist) @lang('Add Offer') @endif @endif @if(auth()->check() && auth()->user()->id == $project->user_id && in_array($project->status, [\App\Models\Project::PENDING, \App\Models\Project::REJECTED])) @lang('Edit Project') @endif {{-- @if(auth()->check() && auth()->user()->id == $project->user_id && $project->status == \App\Models\Project::APPROVED) @endif --}} @if(auth()->check() && auth()->user()->id == $project->user_id && $project->status == \App\Models\Project::CLOSED)
@csrf
@endif
{{-- Profile Incomplete Alert for Freelancers --}} @if(auth()->check() && auth()->user()->isFreelancer() && $profile_incomplete)

@lang('profile_incomplete_title')

@lang('profile_incomplete_message_freelancer')

    @if(in_array('speciality', $missing_items))
  • @lang('missing_speciality')
  • @endif @if(in_array('bio', $missing_items))
  • @lang('missing_bio')
  • @endif @if(in_array('skills', $missing_items))
  • @lang('missing_skills')
  • @endif @if(in_array('profile_image', $missing_items))
  • @lang('missing_profile_image')
  • @endif @if(in_array('work', $missing_items))
  • @lang('missing_work')
  • @endif
@if(count($missing_items) == 1 && in_array('work', $missing_items)) @lang('add_work_now') @else @lang('complete_profile_now') @endif
@endif
@lang('Project Details') @if($project->is_private) مشروع خاص @endif @if($project->is_featured) @lang('front.featured_project') @endif @if(auth()->check() && auth()->user()->isFreelancer()) @php $hasOffer = $project->offers->where('user_id', auth()->id())->first(); @endphp @if($hasOffer) تم التقديم @endif @endif {{-- @if($project->status == \App\Models\Project::COMPLETED) {{$project->getCurrentStatus()}} @elseif($project->status == \App\Models\Project::REJECTED) {{$project->getCurrentStatus()}} @elseif($project->status == \App\Models\Project::CANCELLED) {{$project->getCurrentStatus()}} @elseif($project->status == \App\Models\Project::APPROVED) {{$project->getCurrentStatus()}} @elseif($project->status == \App\Models\Project::RUNNING) {{$project->getCurrentStatus()}} @elseif($project->status == \App\Models\Project::PENDING) {{$project->getCurrentStatus()}} @endif --}} @if ($project->payment_type == \App\Models\Project::PAYMENT_TYPE_PAID && !$project->is_featured_payment && $project->user_id == auth()->id()) @endif
{!! format_text($project->description) !!}
@if(count($project->images) > 0) @foreach($project->images as $image) @php // Get file extension $extension = strtolower(pathinfo($image, PATHINFO_EXTENSION)); $isPdf = in_array($extension, ['pdf']); $isImage = in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'bmp']); @endphp @if($isPdf) {{-- PDF File --}}
PDF
{{ basename($image) }}
@elseif($isImage) {{-- Image File --}} Project attachment @else {{-- Other File Types --}}
{{ strtoupper($extension) }}
{{ basename($image) }}
@endif @endforeach @endif
@if(count($project->questions) > 0)

@lang('Questions')

@foreach($project->questions as $q)

{{$q->question}}

@endforeach
@endif
{{-- Ratings Box - Show when project is completed --}} @if(isset($completedOffer) && $completedOffer) @include('front.project._ratings_box', ['offer' => $completedOffer]) @endif @if(count($offers) > 0)

@lang('Recent Offers')

@if(auth()->check() && auth()->user()->id == $project->user_id)
ترتيب حسب
تصفية حسب نوع الدفع
@endif
check() && auth()->user()->id == $project->user_id) data-pin-title="{{ __('front.Pin offer to top tooltip') }}" data-unpin-title="{{ __('front.Unpin offer tooltip') }}" data-btn-label-pin="{{ __('front.Pin offer to top') }}" data-btn-label-unpin="{{ __('front.Unpin this offer') }}" @endif> @if(count($offers) > 0) @foreach($offers as $offer) @if(isset($offer->user_id) && isset($offer->user)) @php $user = $offer->user; $isOnline = false; if($user->last_login) { try { $isOnline = \Carbon\Carbon::parse($user->last_login)->diffInMinutes(now()) < 10; } catch (\Exception $e) { $isOnline = false; } } @endphp
صورة المستخدم @if($user->identity_verified_at) @endif
{{$user->name}}
@if(false){{-- moved to image --}}@endif @if(auth()->check() && auth()->user()->id == $project->user_id) {{ round($offer->smart_score ?? 0) }}% @endif @if(($user->galleries_count ?? 0) > 0) {{ $user->galleries_count }} @lang('Works') @endif
{{$user->subCategory?->name ?? $user->category?->name ?? trans('N/A')}}
{{ localized_friendly_time($offer->created_at) }}
@if(auth()->check() && (auth()->user()->id == $project->user_id || auth()->user()->id == $offer->user_id))
@if(in_array($offer->status, [\App\Models\Offer::STATUS_RUNNING, \App\Models\Offer::STATUS_COMPLETED])) العرض المقبول @endif @if(auth()->user()->id == $project->user_id) @else @lang('Offer Details') @endif @if($offer->canBeEdited() && auth()->id() == $offer->user_id) @lang('Edit Offer') @endif
@endif
@if(auth()->check() && (auth()->user()->id == $project->user_id || auth()->user()->id == $offer->user_id)) @if($offer->installments->count() == 0)
نوع العرض : {{ $offer->payment_type == 'full' ? 'دفعة واحدة' : 'دفعات مرحلية' }}
التكلفة : {{$offer->total}} $
{{trans('Duration')}} : @if($offer->delivery_days) {{ $offer->delivery_days }} @lang('Day') @elseif($offer->time) {{ getTrans($offer->time->display_name,lang()) }} @else {{ trans('N/A') }} @endif
@endif @if($offer->installments->count() > 0) @foreach($offer->installments as $installment)
المرحلة {{ $loop->iteration }} @if($installment->description) : {{ $installment->description }} @endif
التكلفة : {{ $installment->amount }} $
{{trans('Duration')}} : @if($installment->delivery_days) {{ $installment->delivery_days }} @lang('Day') @else {{ trans('N/A') }} @endif
@endforeach @endif @endif @if(auth()->check() && (auth()->user()->id == $project->user_id || auth()->user()->id == $offer->user_id))
{!! $offer->notes ? format_text($offer->notes) : trans('N/A') !!}
@else

{{ Str::limit($offer->notes ?? trans('N/A'), 150) }}

@endif
@if(auth()->check() && auth()->user()->id == $project->user_id) @endif
@endif @endforeach @endif
@endif
{{-- Project Details Box --}} {{-- Project Details Box --}} @include('front.project._project_details_box') {{-- Project Owner Box --}} @include('front.project._project_owner_box', ['user' => $project->user, 'project' => $project])
@include('front.project._modal_offer') {{-- Confirm Close Project Modal --}} @if(auth()->check() && auth()->user()->id == $project->user_id && $project->status == \App\Models\Project::APPROVED) @endif @endsection @section('js-body') @include('front.freelancer.single_js') @endsection