@extends('layouts.app') @section('title', $post->name) @section('description', $post->description) @section('og_image', $post->img1) @section('content')
    @if($post->video)
  • @endif @if($post->img1)
  • @endif @if($post->img2)
  • @endif @if($post->img3)
  • @endif @foreach ( $post_products as $post_product ) @if ( $post_product->product->img1 )
  • @endif @if ( $post_product->product->img2 )
  • @endif @if ( $post_product->product->img3 )
  • @endif @endforeach

{{ $post->name }}

@if(optional($post->user->profile)->thumbnail) @else @endif

{{ $post->user->name }}

{{ $post->discription }}
@if (optional($post->user->profile)->weight || optional($post->user->profile)->height || optional($post->user->profile)->foot_size)
モデル情報
@if (optional($post->user->profile)->weight)
体重 {{ optional($post->user->profile)->weight }}kg
@endif @if (optional($post->user->profile)->height)
身長 {{ optional($post->user->profile)->height }}cm
@endif @if (optional($post->user->profile)->foot_size)
足の大きさ {{ optional($post->user->profile)->foot_size }}cm
@endif @endif
  • code

商品一覧

@foreach ( $post_products as $post_product )

{{ $post_product->product->name }}

{{ $post_product->product->color }} ({{ $post_product->product->size }})

¥{{ number_format($post_product->product->price * config('price.tax')) }}

@livewire('add-cart', ['post_id' => $post->id, 'product_id' => $post_product->product->id, 'product_detail_id' => null])
@foreach ( $post_product->product->product_details as $product_detail)
@if ($product_detail->img1) @else @endif

{{ $product_detail->name }}

{{ $product_detail->color }} ({{ $product_detail->size }})

¥{{ number_format($product_detail->price * config('price.tax')) }}

@livewire('add-cart', ['post_id' => $post->id, 'product_id' => $post_product->product->id, 'product_detail_id' => $product_detail->id])
@endforeach @endforeach
@if ($post_product->product->size_text)

サイズについて

{!! $post_product->product->size_text !!}
@endif @if ($post_product->product->material)

素材

{!! $post_product->product->material !!}
@endif
@endsection