@extends('admin.layouts.app') @section('title', 'Add Spare Part') @section('content')
{{-- Header --}}

Add New Spare Part

Spare Parts / Add New
@if($errors->any())
Please fix:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf
{{-- LEFT --}}
{{-- Category --}}
@error('spare_part_category_id')
{{ $message }}
@enderror
{{-- Name --}}
@error('name')
{{ $message }}
@enderror
{{-- Part Number + Brand --}}
{{-- Description --}}

{{-- Price + Warranty --}}
Rs
@error('base_price')
{{ $message }}
@enderror
{{-- Sort + Active --}}
Status
Visible to garages
{{-- Buttons --}}
{{-- RIGHT: Preview --}}
Live Preview
Select a category
Part Name
Rs 0
Active
Fill in the form to see preview
Tips
  • Use a unique part number for easy identification
  • Including the brand builds customer confidence
  • A warranty period helps close the sale
  • Inactive parts won't be available to garages
@endsection