@if(isset($freelancer->logo_path)) @endif

Invoice To :

{{ ucfirst($invoiceInfo->client->user->first_name). ' ' .ucfirst($invoiceInfo->client->user->last_name) }}

Invoice #: {{ str_pad($invoiceInfo->invoice_id,4,'0',STR_PAD_LEFT) }}

Invoice Date : {{ date('d-m-Y', strtotime($invoiceInfo->date)) }}

E{{ $invoiceInfo->client->user->email }}

@if($invoiceInfo->client->user->contact_number)

P{{ $invoiceInfo->client->user->contact_number }}

@endif

Project Titles

Deliverables

Qty

Rate

Cost

{{ ucfirst($invoiceInfo->title) }}

    @foreach($invoiceInfo->invoiceItems as $item)
  • {{ ucfirst($item->deliverables) }}
  • @endforeach
    @foreach($invoiceInfo->invoiceItems as $item)
  • {{ $item->quantity }}
  • @endforeach
    @foreach($invoiceInfo->invoiceItems as $item)
  • {{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( $item->rate, 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}
  • @endforeach
    @foreach($invoiceInfo->invoiceItems as $item)
  • {{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( $item->cost, 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}
  • @endforeach

Invoice Terms

{!! nl2br(ucfirst($invoiceInfo->terms)) !!}

Total Price

@php $taxAmount = 0; @endphp @if($invoiceInfo->is_tax && $invoiceInfo->tax_percentage != 0)

Tax ({{ $invoiceInfo->tax_percentage }}%)

@endif

Amount Paid

Amount Due

{{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( $invoiceInfo->cost_sum_count, 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}

@if($invoiceInfo->is_tax && $invoiceInfo->tax_percentage != 0) @php $taxAmount = ($invoiceInfo->cost_sum_count * $invoiceInfo->tax_percentage) / 100; @endphp

{{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( $taxAmount, 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}

@endif

{{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( $invoiceInfo->paid_sum_count, 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}

{{$currencySymbol != 'SAR' ? $currencySymbol : '' }}{{ number_format( (($invoiceInfo->cost_sum_count - $invoiceInfo->paid_sum_count) + $taxAmount) , 2, '.', ',') }}{{$currencySymbol == 'SAR' ? ' '.$currencySymbol : '' }}