@extends('layouts.app') @section('content')
@include('inventory.products.partials.categories')
@csrf @if ($product->exists) @method('PUT') @endif
any() ? old('track_inventory') : $product->track_inventory)>
any() ? old('allow_negative') : $product->allow_negative)>
any() ? old('is_active') : ($product->exists ? $product->is_active : true))>
{{ __('common.save') }} {{ __('common.cancel') }}
@if ($product->exists)
{{ __('inventory.photos') }}
@include('inventory.products.partials.photo-strip', ['product' => $product, 'manage' => true])
@csrf
{{ __('inventory.photo_add') }}
{{ __('inventory.photo_help') }}
@foreach ($errors->get('photos') as $message)
{{ $message }}
@endforeach @foreach ($errors->get('photos.*') as $messages) @foreach ($messages as $message)
{{ $message }}
@endforeach @endforeach
@foreach ($product->photos as $photo) @if (! $loop->first)
@csrf
@endif @if (! $loop->last)
@csrf
@endif
@csrf @method('DELETE')
@endforeach @endif @include('inventory.products.partials.photo-viewer')
@endsection