@extends('layouts.master')

@section('content')
@if (session()->has('message'))
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
<div class="col-md-4 alert alert-{{session('type')}} alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {!! session('message') !!}
              </div>
              </div> 
@endif
<section class="content-header"  >
<div class="col-md-4"></div>
      <div class="col-md-4"><h3> بورصة أسعار جميع المخلفات </h3> </div>
      
      <img   src="{{asset('dist/img/borsa.png')}}"  alt="User Image" style="width: 200px;height: 150px;position: absolute;top: -9px;z-index: 1;right: 150px;">

    </section>
    <br/>
    <br/>
    <br/>
<div class="row">
        <!-- left column -->
        <a href="{{ url('/price/index') }}"  class="btn btn-info" 
        style="margin-left: 14px; background-color: #567aae;border-width: 0px;margin-bottom: 2px;" >Show prices </a>

        <div class="col-md-12">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Edit Vehicle  </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="{{ url('/price/edit') }}">
                        {{ csrf_field() }}
              <div class="box-body">
                
                
              @foreach( $wastes as $waste )   
                <div class="form-group col-md-4">
                  <label for="exampleInputPassword1"> {{ $waste->name }}</label>
                  <input type="number"  step=0.01 name="{{$waste->id}}" value='{{$waste->price}}' class="form-control"  placeholder="price   :  {{ $waste->name  }}" >
                </div>
              @endforeach

              

              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-success">Save</button>
              </div>
            </form>
          </div>    
</div>
         
      </div>

@endsection