@extends('admin.head')
@section('middle')
<section class="content">
@if(Session::has('msg'))
<div class="alert alert-success" id="success-alert">
<button type="button" class="close" data-dismiss="alert">x</button>
<p align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: {{ Session::get('msg') }} </p>
</div>
<br>
@endif
@if(Session::has('msg2'))
<div class="alert alert-danger" id="success-alert">
<button type="button" class="close" data-dismiss="alert">x</button>
<p align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: {{ Session::get('msg2') }} </p>
</div>
<br>
@endif
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Order Detail</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>SR #</th>
<th>Product Name</th>
<th>Product Image</th>
<th>Quantity</th>
<th>Size/Volume</th>
<th>price</th>
</tr>
</thead>
<tbody>
<?php $count=1; ?>
@foreach($products as $product)
<tr>
<td>{{ $count }}</td>
<td>{{ $product->product_name }}</td>
<td>
@php
$check = DB::table('product_images')->where('product_id',$product->product_id)->take(1)->get();
@endphp
@if(count($check)>0)
<img style="width: 100px; height: 100px" src="{{ url('public/uploads/products') }}/{{ $check[0]->image_name }}" >
@endif
</td>
<td>{{ $product->quantity }}</td>
<td>{{ $product->secondquantity }}{{ $product->unit }}</td>
<td>{{ $product->amount }}</td>
</tr>
<?php $count=$count+1; ?>
@endforeach
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
@endsection
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]