PATH:
home
/
lab2454c
/
netxzero.com
/
carbon-credit
/
resources
/
views
/
admin
/
orders
@extends('admin.layout.adminMasterLayout') @section('title', 'Order List') @section('content') <div class="content-wrapper"> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="card-title">Order List</h3> <hr> <div class="table-responsive"> <table id="AdminOrders" class="table table-striped" style="width: 100%;"> <thead> <tr> <th>Customer</th> {{-- <th>Billing Details</th> --}} <th>Project name</th> <th class="text-center">Purchased (kg)</th> <th class="text-center">Carbon Cost</th> <th class="text-center">Transaction Cost</th> <th>Total</th> {{-- <th>Cloverly Tran. ID</th> --}} <th>Receipt</th> <th>Action</th> </tr> </thead> <tbody> @forelse($orders as $order) @php $project = App\Models\Project::where('project_id', $order->project_id)->first(); @endphp <tr> <td>{{ $order->customer->fullname }}</td> {{-- <td> <dl> <dt>Name</dt> <dd>{{ $order->fullname ?? '' }}</dd> <dt>Address</dt> <dd>{{ $order->address ?? '' }}</dd> <dt>Country</dt> <dd>{{ $order->country ?? '' }}</dd> <dt>Email</dt> <dd>{{ $order->email ?? '' }}</dd> <dt>Phone</dt> <dd>{{ $order->phone ?? '' }}</dd> </dl> </td> --}} <td class="align-middle"> <span title="{{ $project->name ?? '--' }}"> {{ Str::limit($project->name, 30) ?? '--' }} </span> </td> <td class="text-center align-middle"><b>{{ $order->carbon_quantity ?? 0 }} kg</b></td> <td class="text-center align-middle">${{ $order->carbon_cost ?? '' }}</td> <td class="text-center align-middle">${{ $order->transaction_cost ?? '' }}</td> <td class="align-middle"><b>${{ $order->total_cost ?? '' }}</b></td> {{-- <td class="align-middle">{{ $order->cloverly_transaction_id ?? '--' }}</td> --}} <td class="align-middle"> @if(!empty($order->receipt_url)) <a href="{{ $order->receipt_url ?? '#' }}" target="_blank" class="btn btn-success btn-sm"> <i class="fa fa-file-text-o" aria-hidden="true"></i> Receipt </a> @else <button class="btn btn-secondary btn-sm" disabled >N.A</button> @endif </td> <td> <a href="#" data-toggle="modal" data-target="#OrderDetails" data-title="Order Details" data-order="{{ $order }}" class="btn btn-primary btn-sm order"> <i class="fa fa-info-circle" aria-hidden="true"></i> Details </a> </td> </tr> @empty <td colspan="8">No Order(s) Found</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $orders->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap5.min.js"></script> <script> $(document).ready(function () { $('#AdminOrders').DataTable( { "bSort" : false } ); }); </script> @include('admin.orders.details') @endsection
[+]
..
[-] details.blade.php
[edit]
[-] list.blade.php
[edit]