@php $image = base64_encode(file_get_contents(public_path('/front/images/Original on Transparent.png'))); @endphp
@if ($booking->createdBy->roles->first()->id == '2') {{$booking->user->name ?? ($booking->user->firstname.' '. $booking->user->lastname)}} @else {{$booking->createdBy->name ?? ($booking->createdBy->firstname.' '. $booking->createdBy->lastname)}} @endif Invoice

ID : #{{$invoice->id}}
Creation Date: {{date("M d,Y", strtotime($invoice->created_at))}}
@php $i = 2; @endphp @foreach($invoice->invoiceExtra as $invoiceExtra) @php $i++; @endphp @endforeach
# Description Days Unit Price Amount
1 {{$invoice->description}} {{$invoice->day}} ${{$invoice->per_day_price}} ${{$invoice->price}}
{{$i}} {{$invoiceExtra->description}} - - ${{$invoiceExtra->price}}
SubTotal : ${{$invoice->sub_total}}
Tax({{$invoice->gst_percentage}}%) : ${{$invoice->gst}}
Total Amount : ${{$invoice->total}}