@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">Bolt with Nuts-Inch create 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">Bolt with Nuts-Inch</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">
                    @foreach ($shows as $show)
                    <div class="row mb-3">
                        <input type="hidden" name="id" value="{{ $show->id }}" readonly>
                        <label for="input39" class="col-sm-3 col-form-label">Length</label>
                        <div class="col-sm-9">
                            <select class="form-select" id="input39" name="length" disabled>
                                <option selected disabled value>Choose...</option>
                                {{-- <option selected="" disabled="" value="">Choose...</option> --}}
                                @foreach ($lengths as $length)
                                    <option value="{{ $length->id }}" {{ ($show->length == $length->id) ? 'selected' : ''  }}>{{ $length->name }}</option>
                                @endforeach
                            </select>
                            @error('length')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="input39" class="col-sm-3 col-form-label">Diameter</label>
                        <div class="col-sm-9">
                            <select class="form-select" id="input39" name="diameter" disabled>
                                <option selected disabled value>Choose...</option>
                                {{-- <option selected="" disabled="" value="">Choose...</option> --}}
                                @foreach ($diameters as $diameter)
                                    <option value="{{ $diameter->id }}" {{ ($show->diameter == $diameter->id) ? 'selected' : ''  }}>{{ $diameter->name }}</option>
                                @endforeach
                            </select>
                            @error('diameter')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="input35" class="col-sm-3 col-form-label">Enter Value</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input35" name="value" value="{{ $show->value }}" readonly>
                            @error('value')
                                <span class="text-danger">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    @endforeach
            </div>
        </div>
    </div>
</div>
<!--end row-->
@endsection


