@extends('Admin.layout') @section('href', route('admin.products.index')) @section('href-title', __('trans.products')) @section('pagetitle', $Product->title()) @section('content') @php($HasColors = $Product->Colors->count() > 0)
@csrf @method('PUT') @if($HasColors) @endif @php($Quantity = $Product->Quantity) @foreach ($Product->Sizes as $Size) @if($HasColors) @foreach ($Product->Colors as $Color) @php($Item = $Quantity->where('size_id',$Size->id)->where('color_id',$Color->id)->first()) @endforeach @else @php($Item = $Quantity->where('size_id',$Size->id)->first()) @endif @endforeach
{{ __('trans.size') }}{{ __('trans.color') }}{{ __('trans.Quantity') }} {{ __('trans.price') }}
{{ $Size->title() }}
{{ $Color->title() }}
{{ $Size->title() }}
@endsection