-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
143 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
@extends('admin/app') | ||
|
||
|
||
@push('scripts') | ||
<link href="{{asset('admin/vendor/datatables/dataTables.bootstrap4.min.css')}}" > | ||
@endpush | ||
|
||
|
||
@section('main_content') | ||
|
||
<div class="container-fluid"> | ||
|
||
<!-- Page Heading --> | ||
<h1 class="h3 mb-2 text-gray-800">Purchase List</h1> | ||
<p class="mb-4"></p> | ||
|
||
<!-- DataTales Example --> | ||
<div class="card shadow mb-4"> | ||
<div class="card-header py-3"> | ||
<h6 class="m-0 font-weight-bold text-primary">DataTables Example</h6> | ||
</div> | ||
|
||
@if (session('status')) | ||
<div class="alert alert-success text-center"> | ||
{{ session('status')}} | ||
</div> | ||
@endif | ||
|
||
<div class="card-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> | ||
<thead> | ||
<tr> | ||
<th>Purchase No</th> | ||
<th>Date</th> | ||
<th>Product Name</th> | ||
<th>Supplier</th> | ||
<th>Quentity</th> | ||
<th>Price</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<th>Purchase No</th> | ||
<th>Date</th> | ||
<th>Product Name</th> | ||
<th>Supplier</th> | ||
<th>Quentity</th> | ||
<th>Price</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</tfoot> | ||
|
||
<tbody> | ||
@foreach ($pending_data as $purchase) | ||
|
||
<tr> | ||
<td>{{$purchase->purchase_id}}</td> | ||
<td>{{$purchase->date}}</td> | ||
<td>{{$purchase->Product_Purchase->name}}</td> | ||
|
||
<td>{{$purchase->Supplier_Purchase->name}}</td> | ||
<td>{{$purchase->buying_qut}} | ||
<span class=" badge-success text-xs badge-pill">{{$purchase->Product_Purchase->Unit_Product->name}}</span> | ||
</td> | ||
<td>{{$purchase->buying_price}}</td> | ||
<td> {!! ($purchase->status==1)? '<span class=" badge-success badge-pill">active</span>':'<span class="badge-danger badge-pill">pending</span>' !!}</td> | ||
<td> | ||
<a href="{{route('purchase-approve',$purchase->id)}}"> <span class="btn btn-sm btn-info" >Approve</span></a> | ||
</td> | ||
</tr> | ||
@endforeach | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
@endsection | ||
|
||
@push('scripts') | ||
|
||
<script src="{{asset('admin/vendor/jquery/jquery.min.js')}}"></script> | ||
|
||
<!-- Page level plugins --> | ||
<script src="{{asset('admin/vendor/datatables/jquery.dataTables.min.js')}}"></script> | ||
<script src="{{asset('admin/vendor/datatables/dataTables.bootstrap4.min.js')}}"></script> | ||
|
||
<!-- Page level custom scripts --> | ||
<script src="{{asset('admin/js/demo/datatables-demo.js')}}"></script> | ||
@endpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters