File manager - Edit - /var/www/payraty/accounting_main/resources/views/order/index.blade.php
Back
@extends('layouts.admin') {{-- @section('page-title') {{ __('Order') }} @endsection --}} @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }} / </a></li> <li class="breadcrumb-item active">{{ __('Order') }}</li> @endsection @section('content') <div class="row"> <div class="col-sm-12"> <div class="card"> <div class="card-body table-border-style"> <!-- Header Section --> {{-- <div class="grid-of-3 margin-bottom-big"> <div class="grid-item"> <h3>All Orders</h3> </div> <div class="grid-item input-item"> <div class="input-group"> <span class="input-group-text bg-white border-0"> <i class="fas fa-search text-secondary"></i> </span> <input type="text" class="form-control border-0 shadow-sm" placeholder="Search Orders" /> </div> </div> <div class="grid-item grid-of-2"> <button class="btn btn-outline-secondary filter"> <i class="fas fa-filter me-1"></i> Filters </button> <div class="dropdown"> <button class="btn btn-outline-secondary dropdown-toggle" id="sortDropdown" data-bs-toggle="dropdown" aria-expanded="false"> Sort By </button> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="sortDropdown"> <li><a class="dropdown-item" href="#">Date</a></li> <li><a class="dropdown-item" href="#">Name</a></li> <li><a class="dropdown-item" href="#">Price</a></li> </ul> </div> </div> </div> --}} <div class="d-flex flex-row justify-content-between align-items-center margin-bottom-big"> <!-- All Employees Header --> <div class="flex-grow-1"> <h2 class="text-lg font-semibold text-primary">All Orders</h2> </div> <!-- Search Input with Icon --> <div class="flex-grow-1 position-relative mt-4 mt-lg-0"> <div class="input-group" style="max-width: 400px;"> <span class="input-group-text bg-white border-0"> <i class="fas fa-search text-secondary"></i> </span> <input type="search" class="form-control border-0 shadow-sm text-sm bg-white border-grey-light-300" placeholder="Search by name, email or id..." /> </div> </div> <!-- Filters Dropdowns --> <div class="d-flex flex-lg-row flex-column justify-content-end align-items-lg-center align-items-start mt-4 mt-lg-0"> <!-- Pay Group Dropdown --> <div class="mb-3 mb-lg-0 me-lg-4" style="width: 150px;"> <select class="form-select bg-white" aria-label="Pay Group"> <option value="all" selected>Filter</option> <option value="monthly">Monthly</option> <option value="hourly">Hourly</option> </select> </div> <!-- Employment Status Dropdown --> <div class="mb-3 mb-lg-0" style="width: 150px;"> <select class="form-select bg-white" aria-label="Employment Status"> <option value="all" selected>Sort</option> <option value="full-time">Full Time</option> <option value="part-time">Part Time</option> <option value="contract">Contract</option> </select> </div> </div> </div> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>{{ __('Order Id') }}</th> <th>{{ __('Date') }}</th> <th>{{ __('Name') }}</th> <th>{{ __('Plan Name') }}</th> <th>{{ __('Price') }}</th> <th>{{ __('Payment Type') }}</th> <th>{{ __('Status') }}</th> <th>{{ __('Coupon') }}</th> <th class="text-center">{{ __('Invoice') }}</th> @if (\Auth::user()->type == 'super admin') <th>{{ __('Action') }}</th> @endif </tr> </thead> <tbody> @php $path = \App\Models\Utility::get_file('/uploads/bank_receipt'); $admin = Utility::getAdminPaymentSetting(); @endphp @if ($orders->isEmpty()) <tr> <td colspan="10" class="text-center"> <img src="{{ asset('assets/images/no-data.png') }}" alt="No Data" style="max-width: 350px; margin-bottom: 50px; margin-top: 150px;"> <p>{{ __('Oops, no orders yet.') }}</p> </td> </tr> @else @foreach ($orders as $order) <tr> <td>{{ $order->order_id }}</td> <td>{{ $order->created_at->format('d M Y') }}</td> <td>{{ $order->user_name }}</td> <td>{{ $order->plan_name }}</td> <td>{{ $admin['currency'] . $order->price }}</td> <td>{{ $order->payment_type }}</td> <td> @if ($order->payment_status == 'succeeded') <i class="badge bg-success p-2 px-3 rounded"></i> {{ ucfirst($order->payment_status) }} @else <i class="badge bg-danger p-2 px-3 rounded"></i> {{ ucfirst($order->payment_status) }} @endif </td> <td>{{ !empty($order->total_coupon_used) ? (!empty($order->total_coupon_used->coupon_detail) ? $order->total_coupon_used->coupon_detail->code : '-') : '-' }} </td> <td class="text-center"> @if ($order->receipt != 'free coupon' && $order->payment_type == 'STRIPE') <a href="{{ $order->receipt }}" title="Invoice" target="_blank" class=""> <i class="ti ti-file-invoice"></i> </a> @elseif($order->receipt == 'free coupon') <p>{{ __('Used 100 % discount coupon code.') }}</p> @elseif($order->payment_type == 'Manually') <p>{{ __('Manually plan upgraded by super admin') }}</p> @elseif(!empty($order->receipt)) <a href="{{ $path . '/' . $order->receipt }}" target="_blank"> <i class="ti ti-file"></i></a> @else - @endif </td> @if (\Auth::user()->type == 'super admin') <td> @if ($order->payment_status == 'pending' && $order->payment_type == 'Bank Transfer') <div class="action-btn bg-warning ms-2"> <a href="#" class="mx-3 btn btn-sm d-inline-flex align-items-center" data-bs-toggle="modal" data-size="lg" data-ajax-popup="true" data-url="{{ route('banktransfer.show', [$order->id]) }}" data-title="{{ __('Payment Status') }}" data-size="lg"> <span class="text-white"> <i class="ti ti-caret-right text-white" data-bs-toggle="tooltip" data-bs-original-title="{{ __('Payment Status') }}"></i></span></a> </div> @endif @php $user = App\Models\User::find($order->user_id); @endphp <div class="action-btn bg-danger ms-2"> {!! Form::open([ 'method' => 'DELETE', 'route' => ['banktransfer.destroy', $order->id], 'id' => 'delete-form-' . $order->id, ]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{ __('Delete') }}"><i class="ti ti-trash text-white text-white"></i></a> {!! Form::close() !!} </div> @foreach ($userOrders as $userOrder) @if ($user->plan == $order->plan_id && $order->order_id == $userOrder->order_id && $order->is_refund == 0) <div class="badge bg-warning rounded p-2 px-3 ms-2"> <a href="{{ route('order.refund', [$order->id, $order->user_id]) }}" class="mx-3 align-items-center" data-bs-toggle="tooltip" title="{{ __('Delete') }}" data-original-title="{{ __('Delete') }}"> <span class ="text-white">{{ __('Refund') }}</span> </a> </div> @endif @endforeach </td> @endif </tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings