![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/orders/ |
<!DOCTYPE html> <html> <head> <title>End of Day Report</title> <style type="text/css"> @page { margin-top: 20px !important; margin-bottom: 20px !important; margin-left: 0px !important; margin-right: 0px!important; padding-left: 0px !important; } body { font-family: 'Source Sans Pro',sans-serif; font-size: 12px; } .text-left { text-align:left; } .text-right { text-align:right; } table { width:100%; /*margin-top:-20px;*/ /*padding-left:12px; padding-right:12px;*/ } .table .thead-dark th { color: #fff; background-color: #343a40; border-color: #454d55; font-weight: 500; padding: 5px; } td.dtr-control { border-bottom: 1px dashed #E3E2E2; } td.bold{ font-weight: bold; } td{ vertical-align: top; } </style> </head> <body> <?php if(isset($filter_data) && !empty($filter_data['from_date'])){ $fromDate = date("d/m/Y",strtotime($filter_data['from_date'])); } if(isset($filter_data) && !empty($filter_data['to_date'])){ $toDate = date("d/m/Y",strtotime($filter_data['to_date'])); } ?> <h2 align="center">End of Day Report (<?php if($fromDate == $toDate) { echo $fromDate; } else{ echo $fromDate." To ".$toDate; } ?>) </h2> <table class="table table-striped table-hover"> <tbody> @foreach ($oilOrders as $order) <tr class="main-tr"> <td class="dtr-control"><br> <table class="sub-table"> <tr> <td width="50px;" align="right">Order: </td> <td class="bold">{{$order->id}}</td> </tr> <tr> <td align="right">Name: </td> <td class="bold">{{$order->customer->name}}</td> </tr> <tr> <td align="right">Notes: </td> <td class="bold">{{($order->delivery_note != '') ? $order->delivery_note : 'n/a'}} </td> </tr> </table><br> </td> <td class="dtr-control"><br> <table class="sub-table"> <tr> <td align="right">Delivery: </td> <td class="bold">{{ date('d/m/Y', strtotime($order->delivery_date)) }}</td> </tr> <tr> <td align="right">Address: </td> <td class="bold">{{$order->address->address_1}} {{$order->address->address_2}} {{$order->address->town}} {{$order->address->county}}</td> </tr> </table><br> </td> <td class="dtr-control"><br> <table class="sub-table"> <tr> <td width="50px;" align="right">Driver: </td> <td class="bold">@if($order->driver_id) @foreach($drivers as $driver) @if($driver->id == $order->driver_id) {{ ($driver->name != '') ? $driver->name : 'n/a'}} @endif @endforeach @else n/a @endif </td> </tr> <tr> <td align="right">Product: </td> <td class="bold"> @if( isset( $order->products ) ) @foreach( $order->products as $product ) {{ $product->name }} @endforeach @endif </td> </tr> <tr> <td align="right">Qty: </td> <td class="bold">@if( isset( $order->products ) ) @foreach( $order->products as $product ) @if(empty($product['pivot']['quantity'])){{ ('Fill the Tank') }}@else{{ $product['pivot']['quantity'] }}@endif @endforeach @endif </td> </tr> </table><br> </td> <td class="dtr-control"><br> <table class="sub-table"> <tr> <td align="right">Payment: </td> <td class="bold"> {{$order->payment_option}} </td> </tr> <tr> <td align="right">Tel: </td> <td class="bold"> {{$order->customer->phone}} </td> </tr> <tr> <td align="right">Status: </td> <td class="bold"><span class="badge font-badge @if($order->order_status == '1') badge-success @else badge-warning @endif">{{ ($order->order_status == '1') ? 'Completed' : 'Pending' }}</span> </td> </tr> </table><br> </td> </tr> @endforeach </tbody> </table> </body> </html>