@extends('layouts.themep')
@section('content')

        <div class="ticket">
        <h3 class="centered" style="font-size: medium;">{{ Session::get('CompanyName') }}</h3>
            <p class="" style="border-bottom: dashed 2px;margin: 4px 0px;">
            <span style="font-weight: bold;"> Date:</span> <span style="float: right;"><?php echo $p_result->added_on; ?></span></p>

                <h1 style="font-size: large;" class="centered"> <?php echo $p_result->name; ?></h1>
                <p  class="right">  <?php if($p_result->food_name!='') echo $p_result->food_name; ?></p>
          
            <p style="border-top: dashed 2px;"> <?php echo $p_result->E_NAME; ?></p>


<div>__________________________</div>
        </div>
        <style>





@page{

margin-top:0mm;

}


            * {
    font-size: 12px;
    font-family: 'Times New Roman';
}

td,
th,
tr,
table {
    border-top: 1px solid black;
    border-collapse: collapse;
}

td.description,
th.description {
    width: 75px;
    max-width: 75px;
}

td.quantity,
th.quantity {
    width: 40px;
    max-width: 40px;
    word-break: break-all;
}

td.price,
th.price {
    width: 40px;
    max-width: 40px;
    word-break: break-all;
}

.centered {
    text-align: center;
    align-content: center;
}

.right {
    text-align: right;
    align-content: right;
}
.ticket {
    width: 155px;
    max-width: 155px;
}

img {
    max-width: inherit;
    width: inherit;
}


        </style>
    
        <script >    window.print(); window.close(); </script>
    
@endsection