@page "/"

<PageTitle>CutList - Home</PageTitle>

<h1>CutList</h1>

<p class="lead">1D Bin Packing Optimization for Material Cutting</p>

<div class="row mt-4">
    <div class="col-md-6 col-lg-3 mb-4">
        <div class="card h-100">
            <div class="card-body">
                <h5 class="card-title">Jobs</h5>
                <p class="card-text">Create and manage cut list jobs. Add parts and stock bins, then optimize to minimize waste.</p>
                <a href="jobs" class="btn btn-primary">Go to Jobs</a>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-lg-3 mb-4">
        <div class="card h-100">
            <div class="card-body">
                <h5 class="card-title">Materials</h5>
                <p class="card-text">Manage material types (tube, bar, angle, etc.) with their shapes and sizes.</p>
                <a href="materials" class="btn btn-outline-primary">Manage Materials</a>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-lg-3 mb-4">
        <div class="card h-100">
            <div class="card-body">
                <h5 class="card-title">Suppliers</h5>
                <p class="card-text">Track suppliers and their available stock lengths for quick project setup.</p>
                <a href="suppliers" class="btn btn-outline-primary">Manage Suppliers</a>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-lg-3 mb-4">
        <div class="card h-100">
            <div class="card-body">
                <h5 class="card-title">Cutting Tools</h5>
                <p class="card-text">Configure cutting tools with their kerf widths for accurate waste calculations.</p>
                <a href="tools" class="btn btn-outline-primary">Manage Tools</a>
            </div>
        </div>
    </div>
</div>

<hr class="my-4" />

<h4>How It Works</h4>
<ol>
    <li><strong>Set up materials</strong> - Define the shapes and sizes of materials you work with</li>
    <li><strong>Add suppliers</strong> - Track which stock lengths are available from your suppliers</li>
    <li><strong>Create a job</strong> - Add the parts you need to cut with their lengths and quantities</li>
    <li><strong>Add stock bins</strong> - Specify which stock lengths to cut from (import from supplier or add manually)</li>
    <li><strong>Optimize</strong> - Run the optimizer to find the best cutting pattern</li>
    <li><strong>Print report</strong> - Generate a printable cut list to take to the shop</li>
</ol>
