@extends('layout._default') @section('body-con') @section('title') Go Back {{-- {{ $user->name }} Details --}} @endsection
Collaboration Id
{{ $collaboration->id }}
Brand Name
House Name
Stripe Fees
{{ $collaboration->price != NULL ? '$'.$collaboration->brandStripeCharges() : '' }}
Influencer Collaboration Commission ($%)
{{ $collaboration->price != NULL ? '$'.$collaboration->influencerCommission() : '' }}
Concierge Collaboration Commission ($%)
{{ $collaboration->price != NULL ? '$'.$collaboration->conciergeCommission() : '' }}
Total Brand Invoice
{{ $collaboration->price != NULL ? '$'.$collaboration->collaborationCharges($collaboration->price) : '' }}
Created At
{{ $collaboration->created_at->format('d M Y, h:i a') }}
{{-- @if($collaboration->status == 'ongoing' || $collaboration->status == 'cancelled') --}} @if($collaboration->price != NULL && $collaboration->status == 'cancelled') {{--
Stripe Service Charges
${{ $collaboration->collaborationCharges() }}
--}}
Cancel Fee
@if($collaboration->status == 'completed') $0 @else $10 @endif
@endif
Collaboration Name
{{ $collaboration?->collaborationRequest?->collaborationName() }}
Influencer Name
Collaboration Price
{{ $collaboration->price != NULL ? '$'.$collaboration->price : '' }}
Brand Collaboration Commission ($%)
{{ $collaboration->price != NULL ? '$'.$collaboration->brandCommission() : '' }}
House Collaboration Commission ($%)
{{ $collaboration->price != NULL ? '$'.$collaboration->houseCommission() : '' }}
Total ZNetwork Commission
{{ $collaboration->price != NULL ? '$'.$collaboration->totalCommission() : '' }}
Total Influencer Payout
{{ $collaboration->price != NULL ? '$'.$collaboration->influencerPayout() : '' }}
Status
{{ $collaboration->status == 'cancelled' ? 'Canceled' : ucwords($collaboration->status) }}
{{-- @if($collaboration->status == 'ongoing' || $collaboration->status == 'cancelled') --}}


@if($collaboration->status == 'ongoing' && Auth::user()->hasPermission('can_edit_collabrations'))

Actions

Cancel Collaboration
{{-- @if($collaboration->status == 'ongoing') --}}
@csrf {{-- --}}


{{--
@csrf --}} {{--
Complete Collaboration And Transfer Payments
--}} {{--
--}} {{-- @endif --}}


@endif

Deliverables

@foreach($collaboration->deliverables as $deliverable) @endforeach
Type Link Revision Count Grace Period Ends At Status Actions
{{ $deliverable->type }} {{ $deliverable->link }} {{ $deliverable->revision_count }} {{ $deliverable->grace_period_ends_at ? \Carbon\Carbon::parse($deliverable->grace_period_ends_at)->format('d M Y, h:i a') : $deliverable->grace_period_ends_at }} {{ ucwords($deliverable->status) }} @if(Auth::user()->hasPermission('can_edit_collabrations')) @endif


Reviews

@foreach($collaboration->reviews as $review) {{-- --}} {{-- --}} @endforeach
Review By Review For Communication Rating Work Progress Rating Recommendation Rating Remarks Review Date Actions
{{ $review->reviewer->name }} {{ $review->reviewee->name }}
@php $rating = $review->rating_for_communication; // Example rating value from your database $fullStars = floor($rating); // Number of full stars $halfStar = ceil($rating) - $fullStars; // Check if there's a half star // Generate empty stars for the remaining space $emptyStars = 5 - $fullStars - $halfStar; @endphp @for($i=0;$i<$fullStars;$i++)
@endfor @if($halfStar>0)
@endif @for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{ $review->rating_for_work_progress }}
@php $rating = $review->rating_for_work_progress; // Example rating value from your database $fullStars = floor($rating); // Number of full stars $halfStar = ceil($rating) - $fullStars; // Check if there's a half star // Generate empty stars for the remaining space $emptyStars = 5 - $fullStars - $halfStar; @endphp @for($i=0;$i<$fullStars;$i++)
@endfor @if($halfStar>0)
@endif @for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{ $review->rating_for_recommendation }}
@php $rating = $review->rating_for_recommendation; // Example rating value from your database $fullStars = floor($rating); // Number of full stars $halfStar = ceil($rating) - $fullStars; // Check if there's a half star // Generate empty stars for the remaining space $emptyStars = 5 - $fullStars - $halfStar; @endphp @for($i=0;$i<$fullStars;$i++)
@endfor @if($halfStar>0)
@endif @for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{ $review->remarks }} {{ $review->created_at->format('d M Y, h:i a') }} @if(Auth::user()->hasPermission('can_edit_collabrations')) @endif
@include('livewire.collaboration.edit-deliverable') @include('livewire.collaboration.edit-review') @endsection @push('scripts') @endpush