{{ trans('Project Details') }}
{{ trans('Title') }}: {{ $project->title }}
{{ trans('Description') }}: {{ $project->description }}
{{ trans('Category') }}: {{ optional($project->category)->name ?? trans('N/A') }}
{{ __('Skills') }}:
@if($project->skills && $project->skills->count() > 0)—
@endif{{ __('front.Payment Method') }}: {{ $project->size ? getTrans($project->size->details, 'ar') : '' }}
{{ trans('Project Time') }}: @if($project->delivery_days) {{ $project->delivery_days }} {{ trans('Day') }} @elseif($project->time) {{ $project->time->name }} @else - @endif
{{ trans('Budget Type') }}: {{ $project->budget_type == \App\Models\Project::BUDGET_TYPE_FIXED ? trans('Fixed') : trans('Hourly') }}
{{ trans('Budget') }}: @if($project->budget_type == \App\Models\Project::BUDGET_TYPE_FIXED) {{ $project->price }} @else {{ $project->price_from }} - {{ $project->price_to }} @endif
{{ trans('Payment Type') }}: {{ $project->payment_type == \App\Models\Project::PAYMENT_TYPE_FREE ? trans('Free') : trans('Paid') }}
{{ trans('Invited Freelancers') }}: {{ $project->invitations->count() }}
{{ trans('Private Project') }}: {{ $project->is_private ? trans('Yes') : trans('No') }} @if($project->is_private && !empty($project->message_to_freelancer)) {{ trans('Message') }}: {!! nl2br(e($project->message_to_freelancer)) !!} @endif
{{ trans('Direct Contract') }}: {{ $project->is_direct ? trans('Yes') : trans('No') }}
{{ trans('Status') }}: {{ $project->getCurrentStatus() }}
@if($project->status == \App\Models\Project::REJECTED){{ trans('Reject Reason') }}: @if($project->reject_reason) {{ $project->reject_reason }} @else — @endif
@endif{{ trans('Created At') }}: {{ $project->created_at->format('Y-m-d H:i') }}
{{ __('dash.Project ratings') }}
{{ __('dash.Owner to freelancer rating') }}
@include('admin.components.rating_stars', ['rating' => optional($ownerRatesFreelancer)->rating]) @if($ownerRatesFreelancer && (int) $ownerRatesFreelancer->rating > 0){{ __('dash.Rated by') }}: {{ $ownerRatesFreelancer->ratedBy->name ?? '—' }}
{{ __('dash.Rating comment') }}: @if($ownerRatesFreelancer->comment) {{ $ownerRatesFreelancer->comment }} @else — @endif
{{ optional($ownerRatesFreelancer->created_at)->format('Y-m-d H:i') }}
@endif{{ __('dash.Freelancer to owner rating') }}
@include('admin.components.rating_stars', ['rating' => optional($freelancerRatesOwner)->rating]) @if($freelancerRatesOwner && (int) $freelancerRatesOwner->rating > 0){{ __('dash.Rated by') }}: {{ $freelancerRatesOwner->ratedBy->name ?? '—' }}
{{ __('dash.Rating comment') }}: @if($freelancerRatesOwner->comment) {{ $freelancerRatesOwner->comment }} @else — @endif
{{ optional($freelancerRatesOwner->created_at)->format('Y-m-d H:i') }}
@endif{{ __('Attachments') }}
{{ trans('Project Questions') }}
-
@foreach($project->questions as $question)
- {{ $question->question }} @endforeach
{{ trans('Project invitation recipients') }} {{ $project->invitations->count() }}
@if(in_array($project->status, [\App\Models\Project::PENDING, \App\Models\Project::APPROVED, \App\Models\Project::RUNNING], true) && $project->category_id && ($project->invitations->count() > 0 || !$project->is_private)) @endif| # | {{ trans('Freelancer') }} | {{ trans('Freelancer speciality') }} | {{ trans('Email') }} | {{ trans('Invitation send status') }} | {{ trans('Invitation response status') }} | {{ trans('Sent at') }} |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if($invitation->freelancer) {{ $invitation->freelancer->name }} @else {{ trans('User not found') }} (ID: {{ $invitation->freelancer_id }}) @endif | {{ optional(optional($invitation->freelancer)->category)->name ?? '—' }} | {{ optional($invitation->freelancer)->email ?? '—' }} | @if($invitation->is_sent) {{ trans('Invitation sent') }} @else {{ trans('Invitation pending send') }} @endif | @php $hasOffer = isset($offersByUserId) && $offersByUserId->has((int) $invitation->freelancer_id); @endphp @if($hasOffer) {{ trans('Offer submitted') }} @else {{ trans('No offer yet') }} @endif | @if($invitation->sent_at) {{ $invitation->sent_at->format('Y-m-d H:i') }} @else — @endif |
{{ trans('No project invitations for this project') }}
@endif{{ trans('Project Offers') }} {{ $project->offers->count() }}
@foreach($project->offers as $offer) @php $statusColorMap = [ 'accepted' => 'success', 'running' => 'primary', 'completed' => 'success', 'rejected' => 'danger', 'cancelled' => 'danger', 'closed' => 'secondary', 'pending' => 'warning', ]; $statusColor = $statusColorMap[$offer->status] ?? 'warning'; @endphp{{ trans('Payment Type') }}: {{ $offer->payment_type == 'full' ? trans('Full Payment') : trans('Installments') }}
{{ trans('Total Amount') }}: {{ $offer->total }}
@if($offer->service_fees){{ trans('Service Fees') }}: {{ $offer->service_fees }}
@endif{{ trans('Hours Number') }}: {{ $offer->hours_number }}
@endif @if($offer->hour_cost){{ trans('Hour Cost') }}: {{ $offer->hour_cost }}
@endif{{ trans('Delivery Time') }}: @if($offer->delivery_days) {{ $offer->delivery_days }} {{ trans('Day') }} @elseif($offer->time) {{ $offer->time->name }} @else - @endif
{{ trans('Approved At') }}: {{ \Carbon\Carbon::parse($offer->approved_at)->format('Y-m-d H:i') }}
@endif @if($offer->rejected_at){{ trans('Rejected At') }}: {{ \Carbon\Carbon::parse($offer->rejected_at)->format('Y-m-d H:i') }}
@endif @if($offer->completed_at){{ trans('Completed At') }}: {{ \Carbon\Carbon::parse($offer->completed_at)->format('Y-m-d H:i') }}
@endif @if($offer->cancelled_at){{ trans('Cancelled At') }}: {{ \Carbon\Carbon::parse($offer->cancelled_at)->format('Y-m-d H:i') }}
@endif{{ $offer->notes }}
-
@foreach($offer->answers as $question => $answer)
- {{ $question }}: {{ $answer }} @endforeach
| # | {{ trans('Amount') }} | {{ trans('Due Date') }} | {{ trans('Delivery Days') }} | {{ trans('Status') }} | {{ trans('Description') }} |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $installment->amount ?? '-' }} | {{ $installment->due_date ?? '-' }} | {{ $installment->delivery_days ? $installment->delivery_days . ' ' . trans('Day') : '-' }} | {{ trans($installment->status ?? '-') }} | {{ $installment->description ?? '-' }} |
{{ trans('Update Status') }}
{{ trans('Project Owner') }}
{{ trans('Name') }}: {{ $owner->name }}
{{ trans('Email') }}: {{ $owner->email }}
التخصص: {{ optional($owner->category)->name ?? '—' }}
{{ trans('Account Type') }}: @if((int) $owner->type === \App\Models\User::TYPE_FREELANCER) {{ trans('Freelancer') }} @elseif((int) $owner->type === \App\Models\User::TYPE_PROJECT_OWNER) أصحاب مشاريع @else — @endif
{{ trans('Country') }}: {{ optional($owner->country)->name ?? '—' }}
{{ trans('Project Recipient') }}
{{ trans('Client name') }}: {{ $clientName !== '' ? $clientName : '—' }}
{{ trans('Client email') }}: {{ $project->client_email ?? '—' }}
{{ trans('Invitation status') }}: {{ $project->invitation_status ?? '—' }}
{{ trans('Invitation link') }}: @if($invitationUrl) {{ trans('Open') }} @else — @endif
{{ trans('Invitation sender') }}:
@if($project->freelancer) @php $recipient = $project->freelancer; @endphp{{ trans('Name') }}: {{ $recipient->name }}
{{ trans('Email') }}: {{ $recipient->email ?? '—' }}
التخصص: {{ optional($recipient->category)->name ?? '—' }}
{{ trans('Account Type') }}: @if((int) $recipient->type === \App\Models\User::TYPE_FREELANCER) {{ trans('Freelancer') }} @elseif((int) $recipient->type === \App\Models\User::TYPE_PROJECT_OWNER) أصحاب مشاريع @else — @endif
{{ trans('Country') }}: {{ optional($recipient->country)->name ?? '—' }}
@elseif($project->freelancer_id){{ trans('User not found') }} (ID: {{ $project->freelancer_id }})
@else—
@endif @else @if($project->freelancer) @php $recipient = $project->freelancer; @endphp{{ trans('Name') }}: {{ $recipient->name }}
{{ trans('Email') }}: {{ $recipient->email ?? '—' }}
التخصص: {{ optional($recipient->category)->name ?? '—' }}
{{ trans('Account Type') }}: @if((int) $recipient->type === \App\Models\User::TYPE_FREELANCER) {{ trans('Freelancer') }} @elseif((int) $recipient->type === \App\Models\User::TYPE_PROJECT_OWNER) أصحاب مشاريع @else — @endif
{{ trans('Country') }}: {{ optional($recipient->country)->name ?? '—' }}
@elseif($project->freelancer_id){{ trans('User not found') }} (ID: {{ $project->freelancer_id }})
@else—
@endif @endif