Homparty v1.0
This commit is contained in:
parent
ac0d5b781e
commit
c73299e52e
40 changed files with 1234 additions and 908 deletions
|
|
@ -84,6 +84,10 @@
|
|||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
@if($userHistoryPaymentOrder && $userHistoryPaymentOrder->status > 2)
|
||||
<h6 class="alert badge-{{$userHistoryPaymentOrder->getStatusColor()}}">Eine Zahlung wurde ausgeführt. Status: {{ trans('payment.status.'.$userHistoryPaymentOrder->getStatusType())}}</h6>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['url' => route('user_homeparty_order', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-order-form']) !!}
|
||||
|
||||
<div class="card mb-4">
|
||||
|
|
@ -92,10 +96,12 @@
|
|||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between align-items-center w-100">
|
||||
<div>Bestellung anlegen</div>
|
||||
@if(!$homeparty->completed)
|
||||
<div class="float-right">
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-1"><i class="ion ion-ios-cog"></i> Verwalten</a>
|
||||
<a href="{{route('user_homeparty_guests', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-1"><i class="ion ion-md-person-add"></i> Gäste anlegen</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -103,7 +109,11 @@
|
|||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h6>Lieferadresse Gastgeber/in <a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a></h6>
|
||||
<h6>Lieferadresse Gastgeber/in
|
||||
@if(!$homeparty->completed)
|
||||
<a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a>
|
||||
@endif
|
||||
</h6>
|
||||
@include('user.homeparty._address', ['homeparty_user' => $homeparty->homeparty_host])
|
||||
</div>
|
||||
|
||||
|
|
@ -128,6 +138,7 @@
|
|||
<div>Bestellung Gastgeber/in {{$homeparty->homeparty_host->billing_firstname}} {{$homeparty->homeparty_host->billing_lastname}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@if(!$homeparty->completed)
|
||||
<div class="col-12">
|
||||
<button type="button" class="btn btn-sm btn-secondary btn-block mt-2" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $homeparty->id }}"
|
||||
|
|
@ -135,6 +146,7 @@
|
|||
data-user_id="{{$homeparty->homeparty_host->id}}"
|
||||
data-route="{{ route('modal_load') }}"><i class="fa fa-plus-circle"></i> Produkt hinzufügen</button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
@ -156,6 +168,7 @@
|
|||
<div>Bestellung {!! $g_count++ !!}. Gast {{$homeparty_guest->billing_firstname}} {{$homeparty_guest->billing_lastname}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@if(!$homeparty->completed)
|
||||
<div class="col-12">
|
||||
<button type="button" class="btn btn-sm btn-secondary btn-block mt-2" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $homeparty->id }}"
|
||||
|
|
@ -163,6 +176,7 @@
|
|||
data-user_id="{{$homeparty_guest->id}}"
|
||||
data-route="{{ route('modal_load') }}"><i class="fa fa-plus-circle"></i> Produkt hinzufügen</button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
@ -186,31 +200,32 @@
|
|||
</div>
|
||||
</h5>
|
||||
|
||||
{{-- TODO Berechnung des WK --}}
|
||||
|
||||
<div class="card-body">
|
||||
<div id="insert_show_total_order">
|
||||
@include('user.homeparty.show_total_order', ['homeparty' => $homeparty])
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@if($homeparty->homeparty_host && $homeparty->homeparty_host->isAddress())
|
||||
<div class="float-right">
|
||||
<button type="submit" class="btn btn-secondary"><i class="ion ion-ios-redo"></i> bestätigen und weiter zur Kasse</button>
|
||||
</div>
|
||||
<br><br>
|
||||
<em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout Server weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
|
||||
@else
|
||||
<div class="alert alert-warning">
|
||||
Die Bestellung kann erst abgesendet werden, wenn die Lieferadresse Gastgeber/in angelegt ist. <a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a></h6>
|
||||
@if(!$homeparty->completed)
|
||||
<hr>
|
||||
@if($homeparty->homeparty_host && $homeparty->homeparty_host->isAddress())
|
||||
<div class="float-right">
|
||||
<button type="submit" class="btn btn-secondary"><i class="ion ion-ios-redo"></i> bestätigen und weiter zur Kasse</button>
|
||||
</div>
|
||||
<br><br>
|
||||
<em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout Server weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
|
||||
@else
|
||||
<div class="alert alert-warning">
|
||||
Die Bestellung kann erst abgesendet werden, wenn die Lieferadresse Gastgeber/in angelegt ist. <a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a></h6>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-left mt-3">
|
||||
@if(!$homeparty->completed)
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-2"><i class="ion ion-ios-cog"></i> Homparty verwalten</a>
|
||||
@endif
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default mb-2">zurück zur Übersicht</a>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue