IMMREX7
@extends('schools.school_layout')
@section('content')
<div class="container-fluid">
<div class="row clearfix">
<div class="col-lg-12">
<div class="tab-content">
<div role="tabpanel" class="tab-pane in active" id="details" aria-expanded="true">
<div class="card" id="details">
<div class="body">
<div class="row">
<div class="col-md-6 col-sm-6">
<?php $student = \App\AdmEntry::where('idStudent', '=', $transaction->idStudent)->first();?>
<address>
<strong>{{$student->firstName}} {{$student->middleName}} {{$student->lastName}}</strong><br>
{{$student->ecNo}} <br>
{{$student->father_fname}} {{$student->father_lname}}<br>
<abbr title="Phone">Mobile:</abbr> {{$student->father_mobile}}
</address>
</div>
<div class="col-md-6 col-sm-6 text-right">
<p class="m-b-0"><strong>Order Date: </strong> {{$transaction->paymentDate}}</p>
<p class="m-b-0"><strong>Order Status: </strong> <span class="badge bg-green">Paid</span></p>
<p class="m-b-0"><strong>Receipt No: </strong> {{$transaction->receiptNo}}</p>
</div>
</div>
<div class="mt-40"></div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th width="60px">Item</th>
<th></th>
<th>Quantity</th>
<th class="hidden-sm-down">Unit Cost</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<?php $k =0; ?>
@foreach($transaction->details as $det)
<?php
$product = \App\Product::where('idProduct',$det->idProduct)->first();
$k++; ?>
<tr>
<td>{{$k}}</td>
<td>
@if(isset($product->productImage))
<img src="{{ asset('storage/schools/'.$product->idSchool.'/products/'.$product->productImage)}}" width="40" alt="Product img">
@endif
</td>
<td>@if(isset($product->productName)) {{$product->productName}} @endif</td>
<td>{{$det->qty}}</td>
<td class="hidden-sm-down">₹{{$det->unitPrice}}</td>
<td>₹{{$det->amountPaid}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-6">
</div>
<div class="col-md-6 text-right">
<p class="m-b-0"><b>Sub-total:</b> ₹{{$transaction->totalPaid}}</p>
<p class="m-b-0">Discout: ₹{{$transaction->discount}}</p>
<h3 class="m-b-0 m-t-10">₹{{$transaction->totalPaid}}</h3>
</div>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</div>
@stop
Copyright © 2021 -