Skip to content

Commit

Permalink
Merge branch 'master' into aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Oct 6, 2024
2 parents 10fca76 + c4bc2e6 commit 942d4db
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion code/resources/views/delivery/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
$master_summary = $aggregate->reduxData();
$currency_symbol = defaultCurrency()->symbol;
$other_bookings = $user->bookings()->where('status', 'pending')->whereHas('order', function($query) use ($aggregate) {
$query->where('aggregate_id', '!=', $aggregate->id)->where('shipping', $aggregate->shipping);
})->get();
/*
In fase di consegna, aggrego sempre tutte le quantità
*/
Expand Down Expand Up @@ -37,12 +41,27 @@
<div class="col-md-6">
@foreach($user->contacts as $contact)
@if($contact->type == 'phone' || $contact->type == 'mobile')
<x-larastrap::text :label="$contact->type_name" :value="$contact->value" disabled readonly />
<x-larastrap::text :label="$contact->type_name" :value="$contact->value" :margins="[0,0,0,0]" disabled readonly />
@endif
@endforeach
</div>
</div>

@if($other_bookings->count())
<div class="row mt-1">
<div class="col">
<div class="alert alert-info">
{{ _i('Questa persona oggi deve ritirare anche altre prenotazioni:') }}
<ul>
@foreach($other_bookings as $ob)
<li>{{ $ob->order->printableName() }}</li>
@endforeach
</ul>
</div>
</div>
</div>
@endif

@foreach($aggregate->orders as $order)
@if($more_orders)
<h4>{{ $order->printableName() }}</h4>
Expand Down

0 comments on commit 942d4db

Please sign in to comment.