@php $trans_detail = !empty( $invoice->TransactionDetail ) ? $invoice->TransactionDetail : null; $seller_payout = !empty( $invoice->sellerPayout ) ? $invoice->sellerPayout : null; $billingDetail = !empty( $invoice->sellerPayout->billingDetail ) ? $invoice->sellerPayout->billingDetail : null; $sellerInfo = array( '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 = isset( $trans_detail?->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

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

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

{{ $invoice_title }}

@else

{{ $invoice->sellerPayout->project->project_title }}

@endif
{{__('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_total_hr')}}{{__('project.inv_amount')}}
{{$sr++}} {{$invoice_title}}{{ !empty( $rete_per_hour ) ? number_format($rete_per_hour) : ''}} {{ $total_hours }}{{ getPriceFormat($currency_symbol,$trans_detail->amount + $trans_detail->used_wallet_amt) }}
{{__('project.inv_tatal')}}
{{getPriceFormat($currency_symbol, ($trans_detail->amount+ $trans_detail->used_wallet_amt +$trans_detail->sales_tax) )}}