@extends('layouts.app')
@section('content')
<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
    <div class="breadcrumb-title pe-3">Flange Nozzle NB Show</div>
    <div class="ps-3">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb mb-0 p-0">
                <li class="breadcrumb-item"><a href="javascript:;">
                    {{-- <i class="bx bx-home-alt"></i> --}}
                </a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Flange Nozzle NB</li>
            </ol>
        </nav>
    </div>
</div>
<!--end breadcrumb-->
<div class="row">
    <div class="col-lg-12 mx-auto">
        <div class="card">
            <div class="card-header px-4 py-3">
                <div class="row">
                    <div class="col-lg-10"></div>
                    <div class="col-lg-2"><button value="Back" type="Button" onclick="history.go(-1);" class="btn btn-grd btn-grd-branding px-5 btn-sm">Back</button></div>
                </div>
            </div>
            <div class="card-body p-4">
                    <div class="row mb-3">
                        <label for="input35" class="col-sm-3 col-form-label">NB Name</label>
                        <div class="col-sm-9">
                            <select class="form-select" id="input39" name="fnb" disabled>
                                <option selected disabled value>Choose...</option>
                                <option value="6" {{ old('fnb',$show->fnb) == 6 ? 'selected' : ''  }}>6 NB</option>
                                <option value="8" {{ old('fnb',$show->fnb) == 8 ? 'selected' : ''  }}>8 NB</option>
                                <option value="10" {{ old('fnb',$show->fnb) == 10 ? 'selected' : ''  }}>10 NB</option>
                                <option value="15" {{ old('fnb',$show->fnb) == 15 ? 'selected' : ''  }}>15 NB</option>
                                <option value="20" {{ old('fnb',$show->fnb) == 20 ? 'selected' : ''  }}>20 NB</option>
                                <option value="25" {{ old('fnb',$show->fnb) == 25 ? 'selected' : ''  }}>25 NB</option>
                                <option value="32" {{ old('fnb',$show->fnb) == 32 ? 'selected' : ''  }}>32 NB</option>
                                <option value="40" {{ old('fnb',$show->fnb) == 40 ? 'selected' : ''  }}>40 NB</option>
                                <option value="50" {{ old('fnb',$show->fnb) == 50 ? 'selected' : ''  }}>50 NB</option>
                                <option value="65" {{ old('fnb',$show->fnb) == 65 ? 'selected' : ''  }}>65 NB</option>
                                <option value="80" {{ old('fnb',$show->fnb) == 80 ? 'selected' : ''  }}>80 NB</option>
                                <option value="90" {{ old('fnb',$show->fnb) == 90 ? 'selected' : ''  }}>90 NB</option>
                                <option value="100" {{ old('fnb',$show->fnb) == 100 ? 'selected' : ''  }}>100 NB</option>
                                <option value="125" {{ old('fnb',$show->fnb) == 125 ? 'selected' : ''  }}>125 NB</option>
                                <option value="150" {{ old('fnb',$show->fnb) == 150 ? 'selected' : ''  }}>150 NB</option>
                                <option value="200" {{ old('fnb',$show->fnb) == 200 ? 'selected' : ''  }}>200 NB</option>
                                <option value="250" {{ old('fnb',$show->fnb) == 250 ? 'selected' : ''  }}>250 NB</option>
                                <option value="300" {{ old('fnb',$show->fnb) == 300 ? 'selected' : ''  }}>300 NB</option>
                                <option value="350" {{ old('fnb',$show->fnb) == 350 ? 'selected' : ''  }}>350 NB</option>
                                <option value="400" {{ old('fnb',$show->fnb) == 400 ? 'selected' : ''  }}>400 NB</option>
                                <option value="450" {{ old('fnb',$show->fnb) == 450 ? 'selected' : ''  }}>450 NB</option>
                                <option value="500" {{ old('fnb',$show->fnb) == 500 ? 'selected' : ''  }}>500 NB</option>
                                <option value="600" {{ old('fnb',$show->fnb) == 600 ? 'selected' : ''  }}>600 NB</option>
                            </select>
                            @error('fnb',$show->fnb)
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="input35" class="col-sm-3 col-form-label">Class Value</label>
                        <div class="col-sm-9">
                            <select class="form-select" id="input39" name="fclassvalue" disabled>
                                <option selected disabled value>Choose...</option>
                                <option value="150" {{ old('fclassvalue',$show->fclassvalue) == 150 ? 'selected' : ''  }}>150</option>
                                <option value="300" {{ old('fclassvalue',$show->fclassvalue) == 300 ? 'selected' : ''  }}>300</option>
                            </select>
                            @error('fclassvalue')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="input35" class="col-sm-3 col-form-label">Category Name</label>
                        <div class="col-sm-9">
                            <select class="form-select" id="input39" name="fcategoryid" disabled>
                                <option selected disabled value>Choose...</option>
                                @foreach ($categories as $category)
                                    <option value="{{ $category->id }}" {{ old('fcategoryid',$show->fcategoryid) == $category->id ? 'selected' : ''  }}>{{ $category->categoryname }}</option>
                                @endforeach
                            </select>
                            @error('fcategoryid')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="input35" class="col-sm-3 col-form-label">Value</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="value" name="value" value="{{ old('value',$show->value) }}" readonly>
                            @error('value')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
            </div>
        </div>
    </div>
</div>
<!--end row-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
@endsection

