<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">
@foreach($cus as $cuse)
@php $deli=0; $tot=0; $unit=0; @endphp
<br>
        <div class="row" style="font-size:25px;font-family: 'Open Sans', sans-serif;text-align: center;align-self: center; color:black;">
            <div class="col-xs-12" style="margin: 0mm 0mm 0mm 25mm; ">
                     {!!DNS1D::getBarcodeHTML($cuse->id, 'C128',2,33)!!} 
            <p style="margin: -0mm 0mm 0mm -25mm;font-size:12px"><b> Invoice Number - {{$cuse->id}} </b></p>

            </div>
            
            </div>




            <div class="row" style="font-size:14px;font-family: 'Open Sans', sans-serif;">
                <div class="col-xs-12" style="border-left: 1px solid black; border-style: solid;">  
                  <h6 style="font-size:12px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold;"> Issued Date : <i> {{$ldate}} </i></h6>
                  <h5>To : <i> {{$cuse->name}} </i></h5>
                  <h6 style="font-size:14px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold;">Address : <i> {{$cuse->address}} </i> </h6>
                  <h5>Phone No : <i> {{$cuse->phone}} / {{$cuse->secondaryphone}} </i> </h5>
                  <h5>Nearest City : <i> {{$cuse->trancecity->city_name}} </i> </h5>
                  <h6 style="font-size:12px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold;">Item : <i>
                  @foreach($cuse->cus_or as $data) 
        
                        {{ $data->orders->pro_name }}
      
                        X {{ $data->qty }} 
                @endforeach
                </i>
                  </h6>
                </div>               
            </div><br>


            <div class="row" style="font-size:14px;font-family: 'Open Sans', sans-serif; border-style: solid;">
                <div class="col-xs-12">
                    
                    <h6  style="font-size:14px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold; line-height: 6px;">Form  </h6>
                    <h6  style="font-size:14px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold; line-height: 6px;">Online Store : <i>{{$cuse->getpage2->companyname}}</i></h6>
                    <h6 style="font-size:14px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold;">Address : <a style="font-style: italic; color:black; font-weight: bold;"> {{$cuse->getpage2->address}} </a></h6>
                   <h6  style="font-size:14px;font-family: 'Open Sans', sans-serif;  color:black; font-weight: bold; line-height: 6px;"> Tel :  <i>{{$cuse->getpage2->phone}} </i></h6>
                   
                </div>
            </div>

            <div class="row" style="font-size:14px;font-family: 'Open Sans', sans-serif; color:black;">
                <div class="col-xs-12">
                <h5 style="line-height: 12px;">Delivery Partner : <i> @foreach($user as $usdata) {{ $usdata->deliveryname }} @endforeach </i> </h5>
                <div style="text-align: center;align-self: center;margin: 0mm 0mm 0mm 25mm;">
                        {!!DNS1D::getBarcodeHTML($cuse->tracking, 'C128',1.5,33)!!}
                    <p style="margin: -0mm 0mm 0mm -25mm;font-size:12px"><b> Tracking Number : {{$cuse->tracking}} </b></p>
                    </div>
                

                </div>               
            </div>

            <div class="row" style=" color:black; font-size:25px;font-family: 'Open Sans', sans-serif;text-align: center;align-self: center;font-weight: bold;">
                <div class="col-xs-12">
                 COD AMOUNT :  @if($cuse->paymentmethod=="paid")0.00 <b> Already Paid</b>@else{{$cuse->cod}}@endif
                    @if($cuse->ordertype=="Exchange")
                    <p style="margin: -3mm 0mm 0mm 0mm;font-size:14px"><b> Exchange Order </b></p>
                    @endif
                </div>               
            </div>

            <div class="breakNow"></div>
@endforeach



<style>
    hr.new2 {
  border-top: 1px dashed black;
}

h5{
    line-height: 6px;
    font-size:14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color:black;
}


div.breakNow { page-break-inside:avoid; page-break-after:always; }
.center {
                text-align: center;
            }



/* @page  {
        margin: 1cm;
    } */

    @page  {
        margin: -0.1cm 1cm 1cm 1cm;
    }
</style>