@extends('front.layouts.app') @section('content')
Balance
@include('front.parts.balance')
@if(Auth::user()->unpaidCashOrCheckPayments(\App\Models\VendorPayment::PAYMENT_TYPE_CASH)->count() > 0)
Cash
@include('front.parts.cash_balance')
@endif @if(Auth::user()->unpaidCashOrCheckPayments(\App\Models\VendorPayment::PAYMENT_TYPE_CHECK)->count() > 0)
Check
@include('front.parts.check_balance')
@endif
Add funds
{{ csrf_field() }}
user()->penalties->count() === 0) required @endif class="input__field input__field_left_dolar">
Fees & penalties (penalties are paid, when adding funds):
@if(!empty($penalties = auth()->user()->penalties)) @foreach($penalties as $penalty)
${{ $penalty->amount }} ({{ $penalty->penalty->name }})
@endforeach @endif @foreach(\App\Models\Fee::active()->get() as $fee)
${{ $fee->amount }} ({{ $fee->name }})
@endforeach
@if(auth()->user()->penalties->count() != 0)
Total penalties
${{ auth()->user()->penalties->sum('amount') }}
@endif
Total
$0
@if(auth()->user()->penalties->count() != 0)
{{ csrf_field() }}
@endif
Your shopping cart
@include('front.booking.order',['days' => \Illuminate\Support\Facades\Auth::user()->unpaidBooking])
History
@if(request()->has("result")) @include('front.modals.upbalance') @endif @if(Session::get('result_penalties')) @include('front.modals.upbalance', ['content' => "You have successfully paid penalties from the balance."]) @endif @if((Session::has('result') && !Session::get('result')) || (Session::has('result_penalties') && !Session::get('result_penalties'))) @include('front.modals.insufficient_funds') @endif @if(Session::has('success_pay_day') && Session::get('success_pay_day')) @include('front.modals.daybooked') @endif @if( Session::has('result') && Session::get('result') && Session::get('count_signed_bookings') > 0 ) @include('front.modals.daybooked', ['ms'=> 'Waiting for stall(s) assignment']) @endif @if( Session::has('result') && Session::get('result') && Session::has('count_unsigned_bookings') && Session::get('count_unsigned_bookings') > 0 && Session::get('count_signed_bookings') === 0 ) @include('front.modals.daybooked', ['ms'=> 'Payment was successful']) @endif @endsection @push('footer.scripts') @endpush