mivita/resources/views/admin/sales/_detail_homparty.blade.php
Kevin Adametz bfa3bb1df4 08 2024
2024-08-05 12:05:24 +02:00

112 lines
2.8 KiB
PHP

<style>
.table-small {
font-size: 0.9em;
width: auto;
}
.table-small td {
padding: 0.225rem 1rem 0.225rem 0;
}
.btn-md-extra {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
line-height: 1.5;
border-radius: 0.25rem;
}
.md-btn-extra {
width: calc(1.7rem + 2px) !important;
line-height: 1.5rem;
}
.form-control.input-extra {
padding: 0.28rem 0.6rem;
font-size: 0.8rem;
font-weight: 500;
min-height: calc(1.8rem + 2px);
height: calc(1.8rem + 2px);
width: 44px;
}
.input-group-min-w {
min-width: 102px;
}
.img-extra {
min-width: 55px;
max-height: 120px;
}
.table td.border-top {
border: none;
border-top: 1px solid #ccccdb;
}
.table td {
border: none;
}
.table th {
border: none;
border-bottom: 1px solid #c3c3d2;
}
@media (max-width: 767px) {
.default-style:not([dir=rtl]) div.card-datatable table.dataTable thead th:first-child,
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tbody td:first-child,
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tfoot th:first-child {
padding-left: 0.6rem !important;
}
.img-extra {
min-width: 35px;
max-height: 160px;
}
}
.table .foot-small td {
padding: 0.225rem 0.625rem;
}
.table .text-body {
font-size: 0.9em;
}
.table .options a.auto-delete-product {
font-size: 0.7em;
font-weight: bold;
text-transform: uppercase;
}
.table .min-width-80 {
min-width: 160px;
}
</style>
@php($homeparty = $shopping_order->homeparty)
@if ($homeparty->homeparty_host)
<p><strong>{{ __('homeparty.order_host') }} {{ $homeparty->homeparty_host->billing_firstname }}
{{ $homeparty->homeparty_host->billing_lastname }}</strong></p>
@include('admin.sales._detail_homparty_user', [
'homeparty' => $shopping_order->homeparty,
'homeparty_guest' => $homeparty->homeparty_host,
])
@endif
@if ($homeparty->homeparty_guests)
@php($g_count = 1)
@foreach ($homeparty->homeparty_guests as $homeparty_guest)
<hr>
<p><strong>{{ __('order.order') }} {!! $g_count++ !!}. {{ __('homeparty.guest') }} {{ $homeparty_guest->billing_firstname }}
{{ $homeparty_guest->billing_lastname }}</strong></p>
@include('admin.sales._detail_homparty_user', [
'homeparty' => $shopping_order->homeparty,
'homeparty_guest' => $homeparty_guest,
])
@endforeach
@endif
<hr>
@include('admin.sales._detail_homparty_total', ['homeparty' => $homeparty])