@extends('layouts.vendor') @section('title', 'Agregar producto') @section('css') @endsection @section('content')

Agregar productos

@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('model')) {{ $errors->first('model') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
{{--
@if ($errors->has('cost')) {{ $errors->first('cost') }} @endif
--}}
{{-- Categorías --}} {{-- Brand --}}
@if ($errors->has('brand')) {{ $errors->first('brand') }} @endif
{{-- Video link --}}
@if ($product && file_exists('uploads/datasheet/' . $product->datasheet)) Extensiones permitidas: pdf | Max: 2MB @else @endif
@if ($errors->has('datasheet')) {{ $errors->first('datasheet') }} @endif @if ($errors->has('fileInput')) {{ $errors->first('fileInput') }} @endif
datasheet)) checked @endif>
iam_type_id == 1)>
iam_type_id == 2)>
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@if ($errors->has('weight')) {{ $errors->first('weight') }} @endif @if ($errors->has('length')) {{ $errors->first('length') }} @endif @if ($errors->has('width')) {{ $errors->first('width') }} @endif @if ($errors->has('height')) {{ $errors->first('height') }} @endif
@if ($errors->has('product')) {{ $errors->first('product') }} @endif {{-- / right column --}}
{{-- / row --}}
@endsection @section('js') @vite('resources/js/products/validationsProducts.js') @vite('resources/js/products/addProducts.js') @vite('resources/js/products/vendor/addBrand.js') @endsection