@extends('layouts.print') @section('content')
{{ $account->contact->firstName }} {{ $account->contact->lastName }}
Room: {{ $account->room->name }}
Your stay:
@date($account->check_in_at, "d M Y") - @date($account->check_out_at, "d M Y")
Date: @date(\Carbon\Carbon::now(), "D, d M Y")

Orders

@foreach($account->sales->groupBy(function($item) { return $item->booking_date; }) as $salesGroupedByDate) @foreach($salesGroupedByDate->sortBy('id') as $sale) @if(!$sale->product->should_display_on_invoice) @continue @endif @if($loop->first) @else @endif @if($loop->first) @else @endif @endforeach @endforeach
Date Product Quantity Unitprice Total Total in PHP
@date($sale->booking_date) {{ $sale->product->name }} {{ $sale->quantity > 1 ? $sale->quantity : "" }} @currency($sale->unit_price) {{ $sale->currency->symbol }} @currency($sale->quantity * $sale->unit_price) {{ $sale->currency->symbol }} @currency($sale->total_in_default_currency) {{ $currency->symbol }}
Total: @currency($account->salesTotal) {{ $currency->symbol }}

Payments

Amount Due

@foreach($account->payments as $payment) @endforeach
Date Amount Total in {{ $currency->name }}
@date($payment->payed_at) {{ $payment->paymentType->display_name }} {{ $payment->amount }} {{ $payment->currency->symbol }} @currency($payment->total_in_default_currency) {{ $currency->symbol }}
Total: @currency($account->paymentsTotal) {{ $currency->symbol }}
@foreach($otherCurrencies as $oc) @endforeach
 
Orders: @currency($account->salesTotal) {{ $currency->symbol }}
Payments: @currency($account->paymentsTotal) {{ $currency->symbol }}
Repeater bonus: @currency($discount) {{ $currency->symbol }}
Total: @currency($total) {{ $currency->symbol }}
@currency(round(($total) / $oc->conversionRateToDefault)) {{ $oc->symbol }}
{{ $account->contact->firstName }} {{ $account->contact->lastName }}
Signature Cashier
@endsection