
<?php $over = $payement->boardingPass->weight_bags - $payement->boardingPass->ticket->segment->cruise->weight;
      $kg= ($payement->amount) / $over;?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ __('Over Wieght Invoice')}}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
    <style>
        @font-face {
            font-family: "AGENCY";
            src: url("/fonts/AGENCY.TTF");
        }
        @font-face {
            font-family: "ROCC";
            src: url("/fonts/ROCCB___.TTF");
        }
        @font-face {
            font-family: "dl";
            src: url("/fonts/DeepLake-Regular.TTF");
        }
        @media print {
    html, body {
        width: 21cm;
     min-height: 14.8cm; 
        
    }
  }

        body {
          transform: rotate(-90deg); 
            font-size: 18px;
            width: 14.8cm;
            height:  21cm;
            padding: 153px  0px 0px 62px;
        }
        .carda {
            
            
            margin: 1 auto;  
           
        }
     
        </style>
</head>
<body>
<div class="carda" >
  <div class="page fnt">
    <div class="container">
    <td colspan="3">
                   <center> <img style="width:20%; , margin-top:10px; "  src="/img/mmt_logo.png" alt=""></center>
                </td>
      <p class="fw-bold" style="font-size: 22px; , font-weight: bold;">{{$payement->boardingPass->ticket->ticket_number}}</p>
      <div class="row">
        <ul class="list-unstyled">
          <li class="text-black">{{$payement->boardingPass->ticket->full_name}}</li>
          <li class="text-muted mt-1"><span class="text-black">{{ __('Invoice For') }}</span> {{$payement->boardingPass->code}}</li>
          <li class="text-black mt-1"><span class="">{{$payement->boardingPass->created_at->format('j F Y')}}</span> </li> 
          </ul>
          <div style="margin-left:75% ;"> {{ __('1 KG Over =')}} {{formatPrice($kg)}}    </div>
          <hr>
          <div class="col-xl-10">
            <p>{{ __('Bags Weight') }}</p>
          </div>
          <div class="col-xl-2">
            <p class="float-end"> {{$payement->boardingPass->weight_bags }}    {{ __('KG') }}
            </p>
          </div>
          <hr>
      </div>
      <div class="row">
        <div class="col-xl-10">
          <p>{{ __('Allowable Weight') }}</p>
        </div>
        <div class="col-xl-2">
          <p class="float-end">{{ $payement->boardingPass->ticket->segment->cruise->weight}}  {{ __('KG') }}
          </p>
        </div>
        <hr>
      </div>
      <div class="row">
        <div class="col-xl-10">
          <p>{{ __('Over Weights') }}</p>
        </div>
        <div class="col-xl-2">
          <p class="float-end">{{ $payement->boardingPass->weight_bags - $payement->boardingPass->ticket->segment->cruise->weight }} {{ __('KG') }}
          </p>
        </div>
        <hr style="border: 2px solid black;">
      </div>
      <div class="row text-black">

        <div class="col-xl-12">
          <p class="float-end fw-bold">Total:  {{formatPrice($payement->amount)}}
          </p>
        </div>
        <hr style="border: 2px solid black;">
      </div>

    </div>
  </div>
</div>
    </body>