@extends('admin.admin-dashboard')
@section('content')
    <div class="row">
        
        <div class="col-12">
           
                <div class="d-flex justify-content-between align-items-center">
                    <div class="mb-2 mb-lg-0">
                        <h3 class="mb-0  text-white">Create Product</h3>
                    </div>
                    <div>
                        <nav aria-label="breadcrumb text-white">
                            <ol class="breadcrumb">
                              <li class="breadcrumb-item"><a class="text-white text-decoration-none" href="{{ route('menu-categories.index') }}">Product List</a></li>
                
                              <li class="breadcrumb-item text-white active" aria-current="page">Create </li>
                            </ol>
                          </nav>
                    </div>
                </div>
           
        </div>
        <div class="col-lg-12">
            <div class="card p-4 mt-3">
                <form action="{{ route('menu-products.store') }}" method="POST" enctype="multipart/form-data">
                    @csrf
                    <div class="mb-3">
                        <label for="menu_category_id" class="form-label">Menu Category</label>
                        <select name="menu_category_id" id="menu_category_id" class="form-control">
                            <option value="">Select Category</option>
                            @foreach ($categories as $category)
                                <option value="{{ $category->id }}">{{ $category->name }}</option>
                            @endforeach
                        </select>
                    </div>
                    <div class="mb-3">
                        <label for="name" class="form-label">Product Name</label>
                        <input type="text" name="name" id="name" class="form-control" required>
                    </div>
                    <div class="mb-3">
                        <label for="price" class="form-label">Product Price</label>
                        <input type="number" step="0.01" name="price" id="price" class="form-control" required>
                    </div>
                    <div class="mb-3">
                        <label for="image" class="form-label">Product Image</label>
                        <input type="file" name="image" id="image" class="form-control" accept="image/*">
                    </div>
                    <button type="submit" class="btn btn-success">Submit</button>
                </form>
            </div>
        </div>
           
            
        </div>
    </div>
@endsection
