@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
| # | {{__('project.inv_title')}} | @if( $transaction_type == 3 ) ){{__('project.inv_rate_per_hr')}} | {{__('project.inv_total_hr')}} | @endif{{__('project.inv_amount')}} |
|---|---|---|---|---|
| {{$sr++}} | {{$invoice_title}} | @if($transaction_type == 3){{ !empty( $rete_per_hour ) ? number_format($rete_per_hour) : ''}} | {{ $total_hours }} | @endif{{ getPriceFormat($currency_symbol,$trans_detail->amount + $trans_detail->used_wallet_amt) }} |