@extends('layouts.master-vnext') @section('page-title') {{ $booking->contact->firstName }} {{ $booking->contact->lastName }} - {{ $booking->room->name }} - @date($booking->check_out_at, "Y-m-d") @endsection @section('content')
@if($booking->is_active) @else

Account closed

@endif

Total: @currency($booking->salesTotal) {{ $defaultCurrency->symbol }} | Payed: @currency($booking->paymentsTotal) {{ $defaultCurrency->symbol }} | Open: @currency($booking->salesTotal - $booking->paymentsTotal) {{ $defaultCurrency->symbol }}

@foreach($sales->groupBy(function($item) { return $item->booking_date; }) as $salesGroupedByDate) @foreach($salesGroupedByDate->sortBy('id') as $sale) @if($loop->first) @else @endif @if($loop->first) @else @endif @endforeach @endforeach
Date SlipID Product Quantity Unitprice Total in PHP Shift
@date($sale->booking_date) {{ $sale->order_id }}   {{ $sale->product->name }} {{ $sale->quantity > 1 ? $sale->quantity : "" }} @if($sale->currency->id !== $defaultCurrency->id) F @endif @currency($sale->unit_price) {{ $sale->currency->symbol }} @currency($sale->total_in_default_currency) {{ $defaultCurrency->symbol }} @if($sale->order_id) @endif @if($sale->comments) @endif @if($booking->is_active) $booking->id, 'saleId' => $sale->id]) }}" class="btn btn-xs btn-default btn-flat"> edit @role('admin')
{!! csrf_field() !!} {!! method_field('DELETE') !!}
@endrole @endif
@endsection @section('js') @endsection