@extends('layouts.master-vnext') @section('page-title') {{ $account->room->name }} - {{ $account->contact->firstName }} {{ $account->contact->lastName }} @endsection @section('content') @include('common.errors')
{{ Form::open(['action' => ['Guest\AccountController@storePayment', $account]]) }} {{ Form::customText('amount') }} {{ Form::customSelect('currency', $currencies->pluck('name', 'id')) }} {{ Form::customSelect('paymentType', $paymentTypes->pluck('display_name', 'id')) }} {{ Form::customText('date', \App\Localization\CarbonExtensions::userLocalNow(), ['class' => 'form-control datetimepicker-control']) }} {{ Form::customSubmit('Create intermediate payment') }} {{ Form::close() }}

Total amount open

@foreach($currencies as $currency) @endforeach
Currency Amount
{{ $currency->name }} @currency( round(($account->salesTotal - $account->paymentsTotal) / $currency->conversionRateToDefault) ) {{ $currency->symbol }}
$account->id]) }}"> {{ csrf_field() }}

Payment history

@foreach($account->payments as $payment) @endforeach
Date Amount Total
@date($payment->payed_at) {{ $payment->amount }} {{ $payment->currency->symbol }} @currency($payment->total_in_default_currency) {{ $defaultCurrency->symbol }}
@endsection