@extends('shops.layout') @section('shops-title') {{ $shop->name }} @endsection @section('shops-content') {!! breadcrumbs(['Shops' => 'shops', $shop->name => $shop->url]) !!}

{{ $shop->name }}

@if ($shop->use_coupons)
You can use coupons in this store!
@if ($shop->allowed_coupons && count(json_decode($shop->allowed_coupons, 1)))
You can use the following coupons: @foreach ($shop->allAllowedCoupons as $coupon) {!! $coupon->displayName !!}{{ $loop->last ? '' : ', ' }} @endforeach
@endif @endif
@if ($shop->has_image) {{ $shop->name }} @endif

{!! $shop->parsed_description !!}

@foreach ($stocks as $type => $stock) @if (count($stock))

{{ $type . (substr($type, -1) == 's' ? '' : 's') }}

@endif @if (Settings::get('shop_type')) @include('shops._tab', ['items' => $stock, 'shop' => $shop]) @else @foreach ($stock as $categoryId => $categoryItems) @php $visible = ''; // check if method exists if (method_exists($categoryItems->first(), 'is_visible') && !$categories[$categoryId]->is_visible) { $visible = ''; } @endphp
{!! isset($categories[$categoryId]) ? '' . $visible . $categories[$categoryId]->name . '' : 'Miscellaneous' !!}
@foreach ($categoryItems->chunk(4) as $chunk)
@foreach ($chunk as $item)
{{ $item->name }}
{{ $item->name }}
Cost: {!! $currencies[$item->pivot->currency_id]->display((int) $item->pivot->cost) !!}
@if ($item->pivot->is_limited_stock)
Stock: {{ $item->pivot->quantity }}
@endif @if ($item->pivot->purchase_limit)
Max {{ $item->pivot->purchase_limit }} @if ($item->pivot->purchase_limit_timeframe !== 'lifetime') {{ $item->pivot->purchase_limit_timeframe }} @endif per user
@endif @if ($item->pivot->disallow_transfer)
Cannot be transferred after purchase
@endif
@endforeach
@endforeach
@endforeach @endif @endforeach @endsection @section('scripts') @endsection