<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />

		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">

		<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
	</head>

	<body style="font-family: Lucida Console">
		<h4> {{ $today }} </h4>
		<table class="table table-striped table-bordered">
			<thead>
				<th>Номер</th>
				<th>Заказ</th>
				<th>Каркас</th>
				<th>Обшита</th>
			</thead>
			<tbody>
		    @foreach($productions as $production)
					<tr>
						<td><b><nobr>{{ $production->partner->getRawTransportTypeName() }}, №{{ $production->order_id }}</nobr></b></td>
					  <td>{{ $production->name }} <p><b>{{ $production->partner->comment_to_production }}</b></p> @if($production->production_master_id == 0 || $production->production_master_id == '0') - <b>Взять со склада</b> @endif</td>
						<td></td>
						<td></td>
					</tr>
		    @endforeach
		  </tbody>
		</table>
		
		<script src="{{ asset('js/jquery-2.1.1.min.js') }}"></script>
		<script src="{{ asset('js/bootstrap.min.js') }}"></script>
		<script>
			$(document).ready(function(){
				window.onafterprint = function() {
					window.close();
				}
				window.print();
			});
		</script>
	</body>
</html>
