75 lines
4.3 KiB
PHP
75 lines
4.3 KiB
PHP
@extends('layouts.main')
|
|
@section('content')
|
|
<div class="main-content">
|
|
<section class="section">
|
|
<div class="section-header">
|
|
<h1>Refund</h1>
|
|
<div class="section-header-breadcrumb">
|
|
<div class="breadcrumb-item active"><a href="{{ route('user.index') }}">Dashboard</a></div>
|
|
<div class="breadcrumb-item"><a href="{{ route('user-refund.index') }}">Refund</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped" id="table-1">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">
|
|
#
|
|
</th>
|
|
<th>Order Id</th>
|
|
<th>Customer</th>
|
|
<th>Seller</th>
|
|
<th>total</th>
|
|
<th>Due Date</th>
|
|
<th>Status</th>
|
|
<th>upload Bukti</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($refunds as $refund)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $refund->id }}</td>
|
|
<td>{{ $refund->transaction->data_pembeli->nama_depan }}
|
|
</td>
|
|
<td>{{ $refund->transaction->data_penjual->nama_depan }}
|
|
</td>
|
|
<td>{{ $refund->total }}</td>
|
|
<td>{{ $refund->created_at }}</td>
|
|
<td>{{ $refund->due_date }}</td>
|
|
<td><a href="#" data-toggle="modal"
|
|
data-target="#modalKeteranganStatus"
|
|
class="badge {{ $refund->status == 'partial refund' ? 'badge-succes' : ($refund->status == 'pending' ? 'badge-warning' : 'badge-danger') }}">{{ ucwords($refund->status) }}</a>
|
|
</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="{{ route('admin-refund.show', $refund->id) }}">Detail</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@extends('user.refund.modal-detail-refund')
|
|
@endsection
|