@extends('layouts.masterHome2')

@section('content')

<div class="card">
               
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  

                  <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Store Name    </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Quanity    </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Unit    </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Price   </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Actions  </th>


                 </tr>
                 </thead>
              <tbody>
                           
              @foreach( $sell_stores as $sell_store )    
                 
                 

                 
                <tr>
               
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" >  {{$sell_store->store->store_name}} -- {{$sell_store->branch->name}} 

                @if($sell_store->locked == "locked")
                                <span  style="float:right" >  
                                <img src='{{asset("theme/dist/img/lock.png")}}' alt="Egwaste"  style="height:30px"   /> 
                                </span> 
                                @endif
                </td>                
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" >{{ $sell_store->quantity}}</td>
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" >{{ $sell_store->store->unit}}</td>
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" >{{ $sell_store->unit_price ? $sell_store->unit_price :'---'}}</td>


                  <td style="text-align:center; width:50px;word-break: break-word;" > 
                  <a   href='{{url("/sell_store/price_edit/$sell_store->id")}}'  >  
                    <span style="color:#C84127;font-size:20px" class="fa fa-edit"> 

                    </span> 
                  </a>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   </td>

                </tr>
               @endforeach
                </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>  
@endsection
