@extends('layouts.app') @section('content')

Crear productos

Llena todo el campo

@csrf @method('PUT')
@if($product->filling == 1) @else @endif
@if($product->message == 'yes') @else @endif
@if($product->comment == 'yes') @else @endif
@if($product->photo != null) @endif
@if($product->unit == 'weight')
id }}]" @else name="w[][1/4]" @endif class="form-control" onkeyup="allowNumberAndComma('1-4');addCommathousand('1-4');" @if(array_key_exists('1/4', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["1/4"][0]->price) }}" @endif >
id }}]" @else name="w[][1/2]" @endif class="form-control" onkeyup="allowNumberAndComma('1-2');addCommathousand('1-2');" @if(array_key_exists('1/2', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["1/2"][0]->price) }}" @endif >
id }}]" @else name="w[][1]" @endif class="form-control" onkeyup="allowNumberAndComma('1');addCommathousand('1');" @if(array_key_exists('1', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["1"][0]->price) }}" @endif >
id }}]" @else name="w[][1.5]" @endif class="form-control" onkeyup="allowNumberAndComma('1_5');addCommathousand('1_5');" @if(array_key_exists("1.5", $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["1.5"][0]->price) }}" @endif >
id }}]" @else name="w[][2]" @endif class="form-control" onkeyup="allowNumberAndComma('2');addCommathousand('2');" @if(array_key_exists('2', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["2"][0]->price) }}" @endif >
id }}]" @else name="w[][2.5]" @endif class="form-control" onkeyup="allowNumberAndComma('2_5');addCommathousand('2_5');" @if(array_key_exists('2.5', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["2.5"][0]->price) }}" @endif >
id }}]" @else name="w[][3]" @endif class="form-control" onkeyup="allowNumberAndComma('3');addCommathousand('3');" @if(array_key_exists('3', $priceweight)) value="{{ preg_replace('/\B(?=(\d{3})+(?!\d))/',',', $priceweight["3"][0]->price) }}" @endif >
@endif
Cancelar
@endsection @push('scripts') @endpush