@extends('layouts.app')
@section('content')
<div class="container">
    <p>
        <h4><b>Detalle Venta</b></h4>
    </p>

    <table class="table table-light">
        <thead class="thead-dark">
            <tr>
                <th>#</th>
                <th>Materiales</th>
                <th>Código de Material</th>
                <th>Cantidad</th>
                <th>Precio</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($datos as $dato)        
                <tr>
                    <td>{{ $loop->iteration }}</td>
                    <td>{{ $dato->nombre }}</td>
                    <td>{{ $dato->codigo }}</td>
                    <td>{{ $dato->cantidadP }}</td>
                    <td>{{ $dato->total }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>

    <a href="{{ url('PeticionMaterial') }}" class="btn btn-primary">Regresar</a>
</div>
@endsection