@php $trans_detail = !empty( $invoice->TransactionDetail ) ? $invoice->TransactionDetail : null; $seller_payout = $billingDetail = null; if( in_array($invoice->payment_type, ['gig','project'])) { $seller_payout = !empty( $invoice->sellerPayout ) ? $invoice->sellerPayout : null; $billingDetail = !empty( $invoice->sellerPayout->billingDetail ) ? $invoice->sellerPayout->billingDetail : null; } $sellerInfo = array( 'full_name' => $seller_payout->sellerInfo?->full_name, 'billing_company' => '', 'billing_email' => '', 'billing_address' => '', 'state_name' => '', ); if( !empty($billingDetail) ){ $sellerInfo = array( 'full_name' => $billingDetail->full_name, 'billing_company' => $billingDetail->billing_company, 'billing_email' => $billingDetail->billing_email, 'billing_address' => $billingDetail->billing_address, 'state_name' => !empty($billingDetail->state) ? $billingDetail->state->name : '', ); } $invoice_type = !empty( $trans_detail->InvoiceType ) ? $trans_detail->InvoiceType : null; $transaction_type = $trans_detail->transaction_type; $status = getTag($invoice->status); $invoice_title = $rete_per_hour = $total_hours = ''; if( $transaction_type == 0 || $transaction_type == 1 ){ $invoice_title = $invoice_type->invoice_title; }elseif($transaction_type == 2){ $invoice_title = $invoice_type->project->invoice_title; }elseif( $transaction_type == 3 ){ $invoice_title = $invoice_type->invoice_title; $rete_per_hour = $invoice_type->proposal->proposal_amount; $total_hours = $invoice_type->total_time; }elseif( $transaction_type == 4 ){ $invoice_title = $invoice_type->gig->invoice_title; } $sr = 1; @endphp
@if( !empty($site_dark_logo) )
{{ __('general.logo') }}
@else
{{ __('general.logo') }}
@endif

{{__('general.invoice')}}

# {{$invoice->id}}
{{__('project.inv_project_title')}}
@if( $transaction_type == 0 || $transaction_type == 4 )

{{ $invoice_title }}

@else

{{ $invoice_title }}

@endif
{{ $status['text'] }}
{{__('project.inv_issue_date')}} {{ date( $date_format, strtotime($invoice->created_at) )}}
{{__('project.inv_from')}}
{{$trans_detail->full_name}}
{{$trans_detail->payer_company}}
{{$trans_detail->payer_email}}
{{$trans_detail->payer_address}}
{{$trans_detail->payer_state}}
@if( $transaction_type != 0 )
{{__('project.inv_to')}}
{{$sellerInfo['full_name']}}
{{$sellerInfo['billing_company']}}
{{$sellerInfo['billing_email']}}
{{$sellerInfo['billing_address']}}
{{$sellerInfo['state_name']}}
@endif
@if( $transaction_type == 3 ) @endif @if ($transaction_type == 3 ) @endif
# {{__('project.inv_title')}} {{ __('project.inv_rate_per_hr') }} {{ __('project.inv_hr') }}{{ __('project.inv_amount') }}
{{ $sr++; }} {{$invoice_title}} {{ !empty( $rete_per_hour ) ?getPriceFormat($currency_symbol, $rete_per_hour) : ''}} {{ $total_hours }}{{ getPriceFormat($currency_symbol,$trans_detail->amount + $trans_detail->used_wallet_amt) }}
  • {{__('project.inv_subtotal')}}
    {{ getPriceFormat($currency_symbol, $trans_detail->amount + $trans_detail->used_wallet_amt)}}
  • @if( !empty($seller_payout) && $userRole == 'seller' && $seller_payout->admin_commission > 0 )
  • {{ __('transaction.admin_fees') }}:
    - {{ getPriceFormat($currency_symbol, $seller_payout->admin_commission) }}
  • @endif
{{__('project.inv_tatal')}}
{{getPriceFormat($currency_symbol, (($trans_detail->amount+ $trans_detail->used_wallet_amt) - (!empty($seller_payout) && $userRole == 'seller' ? $seller_payout->admin_commission : 0)) )}}