@extends('layouts.admin.admin') @section('title', 'Edit Wrench') @section('content') @push('styles') @endpush @include('partials.header') @include('partials.sidebar') Inventory ManagementWrench LookupWrench Details Wrench Details {{-- {{dd($wrench->store)}} --}} @csrf @method("PUT") Serial Number* @if ($errors->has('serial_no')) {{ $errors->first('serial_no') }} @endif Part Number* @if ($errors->has('part_no')) {{ $errors->first('part_no') }} @endif Manufactured Date* @if ($errors->has('manufactured_date')) {{ $errors->first('manufactured_date') }} @endif Current Location* location_type == 'warehouse') checked @endif disabled> Warehouse location_type == 'store') checked @endif disabled> Store @if ($errors->has('currentlocation')) {{ $errors->first('currentlocation') }} @endif location_type == 'store') style="display: block;" @else style="display: none;" @endif> Store Number* location_id == 0) value="{{old('store_no',0)}}" @else value="{{old('store_no',$wrench->store->store_number)}}" @endif disabled> @if ($errors->has('store_no')) {{ $errors->first('store_no') }} @endif If you don't know the Store Number. Find Store Current status* Status @if($wrench->location_type == 'store') status == 'active') selected @endif>Active @else status == 'ready') selected @endif>Ready status == 'in-qc-review') selected @endif>In QC Review status == 'to-be-calibrated') selected @endif>To be calibrated status == 'to-be-repaired') selected @endif>To be repaired status == 'to-be-retired') selected @endif>To be retired status == 'retired') selected @endif>Retired @endif @if ($errors->has('status')) {{ $errors->first('status') }} @endif Next Recalibration* {{$wrench->next_calibration_date}} @if ($errors->has('next_calibration_date')) {{ $errors->first('next_calibration_date') }} @endif Retirement Date @if ($errors->has('retirement_date')) {{ $errors->first('retirement_date') }} @endif Calibration Level* @if ($errors->has('level')) {{ $errors->first('level') }} @endif Edit Save @if(count($calibration) !=0) View Calibration History @endif View Location History