@php $logo=\App\Models\Utility::get_file('logo/'); @endphp

{{__('INVOICE')}}

{!! DNS2D::getBarcodeHTML(route('pay.invoice',[$currentWorkspace->slug,\Illuminate\Support\Facades\Crypt::encrypt($invoice->id)]) , "QRCODE",2,2) !!}

{{__('From')}}:

@if($currentWorkspace->company){{$currentWorkspace->company}}@endif

@if($currentWorkspace->address){{$currentWorkspace->address}}@endif

@if($currentWorkspace->city) {{$currentWorkspace->city}}, @endif @if($currentWorkspace->state){{$currentWorkspace->state}}@endif @if($currentWorkspace->zipcode)- {{$currentWorkspace->zipcode}}@endif

@if($currentWorkspace->country){{$currentWorkspace->country}}@endif

@if($currentWorkspace->telephone){{$currentWorkspace->telephone}}@endif

{{__('Number')}}: {{App\Models\Utility::invoiceNumberFormat($invoice->invoice_id)}}
{{__('Project')}}: {{$invoice->project->name}}
{{__('Issue Date')}}: {{App\Models\Utility::dateFormat($invoice->issue_date)}}
{{__('Due Date')}}: {{App\Models\Utility::dateFormat($invoice->due_date)}}
{{__('To')}}: @if($invoice->client)

{{$invoice->client->name}}

@if($invoice->client->address){{$invoice->client->address}}@endif @if($invoice->client->city)
{{$invoice->client->city}}, @endif @if($invoice->client->state) {{$invoice->client->state}}@endif @if($invoice->client->zipcode) - {{$invoice->client->zipcode}}@endif @if($invoice->client->country)
{{$invoice->client->country}}@endif
{{$invoice->client->email}} @if($invoice->client->telephone)
{{$invoice->client->telephone}}@endif @endif
{{__('#')}}
{{__('Item')}}
{{__('Totals')}}
@if($items = $invoice->items) @foreach($items as $key => $item)
{{$key+1}}
{{$item->task->title}}
{{$currentWorkspace->priceFormat($item->price*$item->qty)}}
@endforeach @endif

@if($currentWorkspace->invoice_footer_title != '' || $currentWorkspace->invoice_footer_notes != '') {{ $currentWorkspace->invoice_footer_title }} :
{{ $currentWorkspace->invoice_footer_notes }} @endif

@if(!isset($preview)) @include('invoices.script'); @endif