dashboard
This commit is contained in:
parent
ee131e7bc8
commit
743cf7e290
@ -13,7 +13,8 @@ class RefundController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
//
|
$refundData = Refund::all();
|
||||||
|
return view('Admin.refund.history-refund', ['history_refund' => $refundData]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,4 +64,4 @@ class RefundController extends Controller
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,6 +5,10 @@ namespace App\Models;
|
|||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
// class Refund extends Model{
|
||||||
|
// protected $table = 'refund';
|
||||||
|
// use HasFactory;
|
||||||
|
// }
|
||||||
class Refund
|
class Refund
|
||||||
{
|
{
|
||||||
private static $history_refund=[
|
private static $history_refund=[
|
||||||
|
@ -20,7 +20,7 @@ class Setting
|
|||||||
"month" => "February",
|
"month" => "February",
|
||||||
"year" =>"2022",
|
"year" =>"2022",
|
||||||
"persentase" =>"40%",
|
"persentase" =>"40%",
|
||||||
"status" =>"Active"
|
"status" =>"Non Active"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"no" => "3",
|
"no" => "3",
|
||||||
@ -41,7 +41,7 @@ class Setting
|
|||||||
"month" => "May",
|
"month" => "May",
|
||||||
"year" =>"2023",
|
"year" =>"2023",
|
||||||
"persentase" =>"20%",
|
"persentase" =>"20%",
|
||||||
"status" =>"Active"
|
"status" =>"Non Active"
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
public static function HistorySetting(){
|
public static function HistorySetting(){
|
||||||
|
@ -148,4 +148,4 @@ return [
|
|||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
@ -13,11 +13,11 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
Schema::create('refunds', function (Blueprint $table) {
|
Schema::create('refunds', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->int('orderId');
|
$table->integer('orderId');
|
||||||
$table->string('customerName');
|
$table->string('customerName');
|
||||||
$table->string('sellerName');
|
$table->string('sellerName');
|
||||||
$table->string('total');
|
$table->string('total');
|
||||||
$table->timestamps('dueDate');
|
$table->timestamp('dueDate');
|
||||||
$table->string('status');
|
$table->string('status');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -29,4 +29,4 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
Schema::dropIfExists('refunds');
|
Schema::dropIfExists('refunds');
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -838,8 +838,39 @@ select.form-control:not([size]):not([multiple]) {
|
|||||||
border: none;
|
border: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
margin-top: 20px; /* Adjust the value to your preference */
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
.card-head{
|
||||||
|
/* background-image: linear-gradient(to bottom right, rgb(144, 12, 63) 0%, rgb(186, 39, 96) 100%, rgb(161, 9, 73) 100%); */
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #E6EBEE;
|
||||||
|
border-radius: 10px 10px 10px 10px ;
|
||||||
|
color: #393B45;
|
||||||
|
height: 250px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
#card_head {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 10px 10px 10px 10px ;
|
||||||
|
}
|
||||||
|
.image-crop {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
background-color: #E6EBEE;
|
||||||
|
width: 120px;
|
||||||
|
height: 120px;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: -70px;
|
||||||
|
margin-right: 950px;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow:2px 2px 5px rgba(0, 0, 0, 0.5);
|
||||||
|
border:3px solid #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card .card-header,
|
.card .card-header,
|
||||||
.card .card-body,
|
.card .card-body,
|
||||||
.card .card-footer {
|
.card .card-footer {
|
||||||
@ -3938,7 +3969,7 @@ body.layout-3 .main-footer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-sidebar .sidebar-menu li a:hover {
|
.main-sidebar .sidebar-menu li a:hover {
|
||||||
background-color: #dfe4ea;
|
background-color: rgb(186, 39, 96);
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-sidebar .sidebar-menu li.active a {
|
.main-sidebar .sidebar-menu li.active a {
|
||||||
|
BIN
public/assets/images/sampul.jpg
Normal file
BIN
public/assets/images/sampul.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
@ -2,96 +2,54 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="section profile">
|
<div class="section-header">
|
||||||
<div class="row">
|
<h1>Profile</h1>
|
||||||
<div class="col-xl-4">
|
</div>
|
||||||
<div class="card">
|
<div class="col-12">
|
||||||
<div class="card-body profile-card pt-4 d-flex flex-column align-items-center">
|
<div class="card">
|
||||||
<img src="/assets/img/avatar/avatar-6.png" alt="Profile"
|
<div class="card-head">
|
||||||
class="rounded-circle profile-img-preview shadow"
|
<img id="card_head" src="/assets/images/sampul.jpg"></img>
|
||||||
style="max-width: 150px; max-height: 150px;">
|
|
||||||
{{-- <h2>{{ Auth::user()->get_name() }}</h2> --}}
|
|
||||||
<h3>Super-Admin</h3>
|
|
||||||
<div class="card-footer text-center">
|
|
||||||
<a href="#" class="btn btn-social-icon btn-facebook mr-1">
|
|
||||||
<i class="fab fa-facebook-f"></i>
|
|
||||||
</a>
|
|
||||||
<a href="#" class="btn btn-social-icon btn-twitter mr-1">
|
|
||||||
<i class="fab fa-twitter"></i>
|
|
||||||
</a>
|
|
||||||
<a href="#" class="btn btn-social-icon btn-github mr-1">
|
|
||||||
<i class="fab fa-github"></i>
|
|
||||||
</a>
|
|
||||||
<a href="#" class="btn btn-social-icon btn-instagram">
|
|
||||||
<i class="fab fa-instagram"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
{{-- <div class="card-head"></div> --}}
|
||||||
<div class="col-xl-8">
|
<div class="image-crop">
|
||||||
<div class="card">
|
<img id="avatar" src="/assets/images/dashboard/img_1.jpg"></img>
|
||||||
<div class="card-body pt-3">
|
</div><br>
|
||||||
<ul class="nav nav-tabs nav-tabs-bordered">
|
<div class="row">
|
||||||
<li class="nav-item">
|
<div class="col-lg-12">
|
||||||
<button class="nav-link active" data-bs-toggle="tab"
|
<div class="row">
|
||||||
data-bs-target="#profile-overview">Overview</button>
|
<div class="col-md-6">
|
||||||
</li>
|
<div>
|
||||||
</ul>
|
<strong style="font-size: 20px; color: black;"><b>Tsalsabila Jilhan
|
||||||
<div class="tab-content pt-2">
|
Haura</b></strong><br>
|
||||||
<div class="tab-pane fade show active profile-overview" id="profile-overview">
|
Super Admin<br>
|
||||||
<h5 class="card-title">About</h5>
|
</div>
|
||||||
<p class="font-weight-italic justified-text">Lorem, ipsum dolor sit amet consectetur
|
</div>
|
||||||
adipisicing
|
<div class="col-md">
|
||||||
elit. Ipsum
|
<div>
|
||||||
aspernatur recusandae sapiente praesentium laboriosam reiciendis unde, tempora,
|
|
||||||
veniam
|
|
||||||
asperiores vel omnis ratione corrupti consequatur officia laudantium commodi
|
|
||||||
enim, eum
|
|
||||||
officiis. In earum non vero facere, obcaecati, repudiandae eaque dignissimos ut
|
|
||||||
iure
|
|
||||||
tempora libero ea. Omnis eius sit neque aliquam, sequi corrupti soluta itaque
|
|
||||||
laborum
|
|
||||||
non qui nisi nobis dicta, aperiam corporis voluptates! Ad dolore ipsam quo
|
|
||||||
molestias
|
|
||||||
neque consectetur at ipsa perspiciatis. Unde non possimus voluptas a, minus
|
|
||||||
voluptatem
|
|
||||||
iure inventore fugiat officia iste vitae beatae odit architecto laborum amet
|
|
||||||
voluptates
|
|
||||||
dolorum ut perspiciatis nulla nihil odio! Consequuntur, neque delectus!</p>
|
|
||||||
<h5 class="card-title">Profile Details</h5>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label ">ID Number</div>
|
<div class="col-1"><i class="fas fa-id-card"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">94894893848</div>
|
<div class="col-lg-9 col-md-8">94894893848</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label ">Full Name</div>
|
<div class="col-1"><i class="fas fa-user"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">JIlhan Haura</div>
|
<div class="col-lg-9 col-md-8">jilhan Haura</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label">Role</div>
|
<div class="col-1"><i class="fas fa-user-tag"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">
|
<div class="col-lg-9 col-md-8">Super Admin</div>
|
||||||
Super-Admin
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label">Address</div>
|
<div class="col-1"><i class="fas fa-map-marker-alt"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">Jl simpang komplek polda</div>
|
<div class="col-lg-9 col-md-8">Jl simpang komplek polda</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label">Phone</div>
|
<div class="col-1"><i class="fas fa-phone"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">0345893853</div>
|
<div class="col-lg-9 col-md-8">+62 1209 0120 02</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3 col-md-4 label">Email</div>
|
<div class="col-1"><i class="fas fa-envelope"></i></div>
|
||||||
<div class="col-lg-9 col-md-8">jilhanhaura07@gmail.com</div>
|
<div class="col-lg-9 col-md-8">jilhan@gmail.com</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -99,4 +57,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
</section>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
@ -59,7 +59,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="/detail_refund">Details</a>
|
<a class="dropdown-item" href="/detail_refund">Details</a>
|
||||||
<a class="dropdown-item" href="#">Edit</a>
|
|
||||||
<a class="dropdown-item" href="#">Delete</a>
|
<a class="dropdown-item" href="#">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,7 +60,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="/detail-user">Details</a>
|
<a class="dropdown-item" href="/detail-user">Details</a>
|
||||||
<a class="dropdown-item" href="#">Edit</a>
|
|
||||||
<a class="dropdown-item" href="#">Delete</a>
|
<a class="dropdown-item" href="#">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\Http\Controllers\RefundController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use App\Models\Refund;
|
use App\Models\Refund;
|
||||||
use App\Models\Setting;
|
use App\Models\Setting;
|
||||||
@ -45,6 +46,10 @@ Route::get('/history_refund', function () {
|
|||||||
"history_refund" => Refund::HistoryRefund()
|
"history_refund" => Refund::HistoryRefund()
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Route::get('/refund',[RefundController::class,'index']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Route::get('/detail_refund',function() {
|
Route::get('/detail_refund',function() {
|
||||||
return view('Admin/refund/detail-refund',[
|
return view('Admin/refund/detail-refund',[
|
||||||
'name'=>'Jilhan Haura',
|
'name'=>'Jilhan Haura',
|
||||||
|
Loading…
Reference in New Issue
Block a user