@extends('layouts.admin') @section('title') {{__('Invoice ').\App\Models\Utility::invoiceNumberFormat($invoice->invoice_id)}} @endsection @php $logo = \App\Models\Utility::get_file('/'); // $logo = isset($invoice_logo) && !empty($invoice_logo) ? $invoice_logo : $logo.'logo.png'; @endphp @push('css') @endpush @section('action-button') @if(Auth::user()->id == $invoice->created_by) @if(Auth::user()->type != 'client') @endif @endif @if($invoice->client_id == Auth::user()->id) @if (Auth::user()->type != 'owner') @if($invoice->getDue() > 0) @if($paymentSetting['enable_stripe'] == 'on' || $paymentSetting['enable_paypal'] == 'on' || $paymentSetting['is_paystack_enabled'] == 'on' || $paymentSetting['is_flutterwave_enabled'] == 'on' || $paymentSetting['is_razorpay_enabled'] == 'on' || $paymentSetting['is_mercado_enabled'] == 'on' || $paymentSetting['is_paytm_enabled'] == 'on' || $paymentSetting['is_mollie_enabled'] == 'on' || $paymentSetting['is_skrill_enabled'] == 'on' || $paymentSetting['is_coingate_enabled'] == 'on' ||$paymentSetting['is_toyyibpay_enabled'] == 'on'||$paymentSetting['is_payfast_enabled'] == 'on'||$paymentSetting['is_iyzipay_enabled'] == 'on'|| $paymentSetting['is_paytab_enabled'] == 'on'|| $paymentSetting['is_paytab_enabled'] == 'on'|| $paymentSetting['is_benefit_enabled'] == 'on'|| $paymentSetting['is_cashfree_enabled'] == 'on' || $paymentSetting['is_aamarpay_enabled'] == 'on'|| $paymentSetting['is_paytr_enabled'] == 'on' || $paymentSetting['is_yookassa_enabled'] == 'on'|| $paymentSetting['is_xendit_enabled'] == 'on' || $paymentSetting['is_midtrans_enabled'] == 'on') @endif @endif @endif @endif @endsection @section('content')
@if(Auth::user()->mode == 'light') @if($invoice->client_id == Auth::user()->id) @else @endif @else @if($invoice->client_id == Auth::user()->id) @else @endif @endif
{{__(\App\Models\Invoice::$status[$invoice->status])}}
{!! DNS2D::getBarcodeHTML(route('pay.invoice',\Illuminate\Support\Facades\Crypt::encrypt($invoice->id)), "QRCODE",2,2) !!}
{{__('From :')}}

{{ Auth::user()->name }}

{{ $left_address['address'] }}
{{ $left_address['city'] }} @if(isset($left_address['city']) && !empty($left_address['city'])), @endif {{$left_address['state']}} @if(isset($left_address['zipcode']) && !empty($left_address['zipcode']))-@endif {{$left_address['zipcode']}}
{{$left_address['country']}}
{{$left_address['telephone']}}
{{__('To :')}}

@if($invoice->client_id == Auth::user()->id) {{ $invoice->user->name }} @else {{ $invoice->client->name }} @endif

{{ $right_address['address'] }}
{{ $right_address['city'] }} @if(isset($right_address['city']) && !empty($right_address['city'])), @endif {{$right_address['state']}} @if(isset($right_address['zipcode']) && !empty($right_address['zipcode']))-@endif {{$right_address['zipcode']}}
{{$right_address['country']}}
{{$right_address['telephone']}}
{{__('Project')}}
{{$invoice->project->title}}
{{__('Due Date')}}
{{\App\Models\Utility::getDateFormated($invoice->due_date)}}
{{__('Due Amount')}}
{{\App\Models\Utility::projectCurrencyFormat($invoice->project_id,$invoice->getDue(),true)}}

{{__('Item List')}}
@if(Auth::user()->id == $invoice->created_by)
@endif
@if(Auth::user()->id == $invoice->created_by) @endif @foreach($invoice->items as $item) @if(Auth::user()->id == $invoice->created_by) @endif @endforeach
{{__('Item')}} {{__('Price')}} {{__('Tax')}}{{__('Action')}}
{{ $item->item }} {{ App\Models\User::priceFormat($item->price) }} {{ App\Models\User::priceFormat($item->tax()) }} {!! Form::open(['method' => 'DELETE', 'route' => ['invoices.products.delete', $invoice->id,$item->id],'id'=>'delete-form-'.$item->id]) !!} {!! Form::close() !!}
{{__('Total value:')}} {{ number_format($invoice->getSubTotal()+$invoice->getTax()) }}
{{__('Subtotal')}}
{{ number_format($invoice->getSubTotal()) }}
{{(!empty($invoice->tax)?$invoice->tax->name:'Tax')}} ({{(!empty($invoice->tax)?$invoice->tax->rate:'0')}} %)
{{ number_format($invoice->getTax()) }}
{{__('Payment History')}}
@if($invoice->payments->count() || $bankpayments->count()) @foreach($invoice->payments as $payment) @endforeach @foreach($bankpayments as $bankpayment) @endforeach @else @endif
{{ __('Transaction ID')}} {{ __('Payment Date')}} {{ __('Payment Type')}} {{ __('Receipt')}} {{ __('Note')}} {{ __('Amount')}} {{ __('Action') }}
{{sprintf("%05d", $payment->transaction_id)}} {{ \App\Models\Utility::getDateFormated($payment->date) }} {{$payment->payment_type}} {{'-'}} {{(!empty($payment->notes)) ? $payment->notes : '-'}} {{\App\Models\Utility::projectCurrencyFormat($invoice->project_id,$payment->amount,true)}} {!! Form::open(['method' => 'GET', 'route' => ['invoicebank.destory', $payment->id], 'id' => 'delete-payment-' . $payment->id]) !!} {!! Form::close() !!}
{{sprintf('%05d', $bankpayment->order_id)}} {{ App\Models\User::dateFormat($bankpayment->date) }} {{'Bank Transfer'}} @if($plan->storage_limit <= $total_storage != -1) @else {{'-'}} @endif {{(!empty($bankpayment->notes)) ? $bankpayment->notes : '-'}} {{\App\Models\Utility::projectCurrencyFormat($invoice->project_id,$bankpayment->amount,true)}}
@if(($bankpayment->status == 'pending')) @endif
{!! Form::open(['method' => 'GET', 'route' => ['banktransfer.destory', $bankpayment->id], 'id' => 'delete-order-' . $bankpayment->id]) !!} {!! Form::close() !!}
{{__('No Record Found.')}}
@if($invoice->client_id == Auth::user()->id) @if($invoice->getDue() > 0) @if($paymentSetting['enable_stripe'] == 'on' || $paymentSetting['enable_paypal'] == 'on' || $paymentSetting['is_paystack_enabled'] == 'on' || $paymentSetting['is_flutterwave_enabled'] == 'on' || $paymentSetting['is_razorpay_enabled'] == 'on' || $paymentSetting['is_mercado_enabled'] == 'on' || $paymentSetting['is_paytm_enabled'] == 'on' || $paymentSetting['is_mollie_enabled'] == 'on' || $paymentSetting['is_skrill_enabled'] == 'on' || $paymentSetting['is_coingate_enabled'] == 'on'|| $paymentSetting['is_toyyibpay_enabled'] == 'on' || $paymentSetting['is_payfast_enabled'] == 'on'|| $paymentSetting['is_iyzipay_enabled'] == 'on'|| $paymentSetting['is_sspay_enabled'] == 'on'|| $paymentSetting['is_paytab_enabled'] == 'on'|| $paymentSetting['is_benefit_enabled'] == 'on' || $paymentSetting['is_cashfree_enabled'] == 'on' || $paymentSetting['is_aamarpay_enabled'] == 'on' || $paymentSetting['is_paytr_enabled'] == 'on' || $paymentSetting['is_yookassa_enabled'] == 'on'|| $paymentSetting['is_xendit_enabled'] == 'on'|| $paymentSetting['is_midtrans_enabled'] == 'on') @endif @endif @endif @endsection @push('script') @if($invoice->client_id == Auth::user()->id) @if($invoice->getDue() > 0 && $paymentSetting['enable_stripe'] == 'on') @endif @if(isset($paymentSetting['is_paystack_enabled']) && $paymentSetting['is_paystack_enabled'] == 'on') @endif @if(isset($paymentSetting['is_flutterwave_enabled']) && $paymentSetting['is_flutterwave_enabled'] == 'on') @endif @if(isset($paymentSetting['is_razorpay_enabled']) && $paymentSetting['is_razorpay_enabled'] == 'on') @endif @endif @endpush