dashboard-admin/resources/views/Admin/refund/index.blade.php

66 lines
3.8 KiB
PHP

@extends('admin.layout.main')
@section('content')
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>History Refund</h1>
<div class="section-header-breadcrumb">
<div class="breadcrumb-item active"><a href="{{route('admin.index')}}">Dashboard</a></div>
<div class="breadcrumb-item">Refund</div>
{{-- <div class="breadcrumb-item">History</div> --}}
</div>
</div>
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped" id="table-4">
<thead>
<tr>
<th class="text-center">
#
</th>
<th>Order ID</th>
<th>Pembeli</th>
<th>Penjual</th>
<th>Total</th>
<th>Status</th>
<th>Tanggal Pengajuan</th>
<th>Batas Konfirmasi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($refunds as $refund)
<tr>
<td>{{ $loop->iteration }}</td>
<td class="font-weight-600">{{ $refund->orderId }}</a></td>
<td class="font-weight-600">{{ $refund->orders->pembeli }}</td>
<td class="font-weight-600">{{ $refund->orders->penjual }}</td>
<td class="font-weight-600">{{ $refund->total }}</td>
<td>
<div class="badge {{ $refund->status == 'Partial Refund' ? 'badge-succes' : ($refund->status == 'Pending' ? 'badge-info' : 'badge-warning') }}">{{ $refund->status }}</div>
</td>
<td class="font-weight-600">{{ $refund->created_at }}</td>
<td class="font-weight-600">{{ $refund->due_date }}</td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Aksi
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="/detail_refund">Details</a>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection