@extends('pages.layouts.app') @section('title') Shop @endsection @section('css') @endsection @section('content') @php $bg_image = \App\Models\GeneralSettings::where('key', \App\Models\GeneralSettings::STOREBANNERIMAGE)->first() != null ? asset("").\App\Models\GeneralSettings::where('key', \App\Models\GeneralSettings::STOREBANNERIMAGE)->first()->value : ""; @endphp
Full Div Image
@include('partials.session')
@foreach($items as $item)
@if($item->type == \App\Models\Item::DIGITAL)
Trade
@endif @if($item->label)
{{$item->label}}
@endif
@php if($item->type == \App\Models\Item::DIGITAL){ $title = $item->digital_item->name; }else{ $title = $item->title; } @endphp
{{$title}}
@if($item->type == \App\Models\Item::DIGITAL)

You will get: {{$item->quantity}}

@else

Available: {{$item->stock}}

@endif {{--
--}} @php // Split the text into an array of words $words = explode(' ', strip_tags($item->description)); // Define the word limit $wordLimit = 10; // Determine if the text exceeds the word limit $excerpt = count($words) > $wordLimit ? implode(' ', array_slice($words, 0, $wordLimit)) . '...' : $item->description; @endphp {{ $excerpt }}
Price: @foreach($item->price as $price) ({{$price->digital_item_quantity}} x {{$price->digital_asset->name}}) {{-- digital_asset->image}}" alt="{{$price->digital_asset->name}}" class="price-img"> --}} @endforeach
@if($item->freeItems->isNotEmpty()) Free items on purchase of {{ $item->item_quantity_for_free_item }}
    @foreach($item->freeItems as $freeItem)
  • {{ $freeItem->free_item_quantity }} x {{ $freeItem->freeItem->name }}
  • @endforeach
@else No free items available @endif
@endforeach
@endsection @section('script') @endsection