@extends('layouts.app') @section('style') @endsection @section('content')

Edit Unit: {{ $unit->name }}

@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Basic Information
The full name of the unit
Short form (max 10 characters)
is_base_unit) ? 'checked' : '' }}>
Base units don't require a parent unit. Uncheck to create a derived unit.
Conversion Settings (Optional)
These fields are optional. Leave empty if this is a base unit.
Select if this unit is derived from another unit
1 @if($unit->baseUnit) {{ $unit->baseUnit->abbreviation }} @else [Base] @endif = [This Unit]
Example: 1 Meter = 100 Centimeters (rate = 100)
@if($unit->derivedUnits()->count() > 0)
Note: This unit is used as a base unit for {{ $unit->derivedUnits()->count() }} other units. Changing it to a derived unit may affect those conversions.
@endif
@endsection @section('script') @endsection