@extends('layouts/layoutMaster') @section('title', __('locale.Product Details')) @section('vendor-style') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/swiper/swiper.scss', 'resources/assets/vendor/scss/pages/ui-carousel.scss']) @endsection @section('page-style') @vite('resources/assets/vendor/scss/pages/page-user-view.scss') @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/cleave-zen/cleave-zen.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/swiper/swiper.js']) @endsection @section('page-script') @vite(['resources/assets/js/ui-carousel.js']) @endsection @section('content')
@php $currency=Helper::setting('currency_symbol', 'currency'); @endphp
Product avatar
{{ $product->in_stock == 1 ? 'In Stock' : 'Out of Stock' }}
{{ __('locale.Stock Status') }}
{{ $product->orders->count() }} @if ($product->orders_quantity_sum > 0) ({{ $product->orders_quantity_sum }}) @endif
{{ __('locale.Product') }} {{ __('locale.Orders') }}
{{ __('locale.Details') }}
  • {{ __('locale.Title') }}: {{ $product->title }}
  • {{ __('locale.Sku') }}: {{ $product->sku }}
  • {{ __('locale.Price') }}: {{ $currency }}{{ $product->price }}
  • {{ __('locale.Discounted Price') }}: {{ $currency }}{{ $product->discounted_price }}
  • {{ __('locale.Status') }}: @if ($product->status == 1) {{ __('locale.Active') }} @else {{ __('locale.Inactive') }} @endif
  • {{ __('locale.Tags') }}: @php $tagColors = [ 'bg-label-primary', 'bg-label-secondary', 'bg-label-success', 'bg-label-danger', 'bg-label-warning', 'bg-label-info', 'bg-label-dark', ]; $tags = isset($product->tags) ? explode(',', $product->tags) : []; @endphp
    @foreach ($tags as $tag) @php $color = $tagColors[array_rand($tagColors)]; @endphp {{ trim($tag) }} @endforeach
@endsection