@extends('layouts.app')

@section('page-title') {{ __('crud.edit').' '.__('beep.InspectionItem').': '.(isset($inspectionitem->name) ? $inspectionitem->name : '' }}
@endsection

@section('content')
    @component('components/box')
        @slot('title')
            {{ __('crud.edit').' '.__('crud.attributes') }}
        @endslot

        @slot('bodyClass')
        @endslot

        @slot('body')


            @if ($errors->any())
                <ul class="alert alert-danger">
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            @endif

            <form method="POST" action="{{ route('inspection-items.update',$inspectionitem->id) }}" accept-charset="UTF-8" class="form-horizontal" enctype="multipart/form-data">
                
                {{ method_field('PATCH') }}
                {{ csrf_field() }}

                @include ('inspection-items.form', ['submitButtonText' => 'Update'])

            </form>


      @endslot
    @endcomponent
@endsection
