Merge pull request #5 from 4xmen/master

sync repro
A1Gard 5 months ago committed by GitHub
commit c8832aad81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,7 +82,7 @@ class CardController extends Controller
public function index() public function index()
{ {
auth('customer')->login(Customer::first()); // auth('customer')->login(Customer::first());
$area = 'card'; $area = 'card';
$title = __("Shopping card"); $title = __("Shopping card");
$subtitle = ''; $subtitle = '';

@ -102,9 +102,9 @@ export default {
select(i) { select(i) {
document.querySelector('#price').innerText = commafy(this.qz[i].price.toString()) + ' ' + this.currency; document.querySelector('#price').innerText = commafy(this.qz[i].price.toString()) + ' ' + this.currency;
let index = this.qz[i].image; let index = this.qz[i].image;
this.selected = i;
document.querySelector('#preview a').setAttribute('href', document.querySelector(`#hidden-images a:nth-child(${index + 1})`).getAttribute('href')); document.querySelector('#preview a').setAttribute('href', document.querySelector(`#hidden-images a:nth-child(${index + 1})`).getAttribute('href'));
document.querySelector('#preview img').setAttribute('src', document.querySelector(`#hidden-images a:nth-child(${index + 1}) img`).getAttribute('src')); document.querySelector('#preview img').setAttribute('src', document.querySelector(`#hidden-images a:nth-child(${index + 1}) img`).getAttribute('src'));
this.selected = i;
}, },
async add2card() { async add2card() {
if (this.selected == null) { if (this.selected == null) {

@ -189,9 +189,10 @@
- -
@else @else
@foreach($order->quantity->meta as $m) @foreach($order->quantity->meta as $m)
<span> <div title="{{$m['label']}}" class="float-start p-2">
{{$m->human_value}} {{$m['label']}}:
</span> {!! $m['human_value']??'-' !!}
</div>
@endforeach @endforeach
@endif @endif
</td> </td>

@ -68,8 +68,8 @@
- -
@else @else
@foreach($order->quantity->meta as $m) @foreach($order->quantity->meta as $m)
<span> <span>
{{$m->human_value}} {!! $m['human_value']??'-' !!}
</span> </span>
@endforeach @endforeach
@endif @endif

Loading…
Cancel
Save