Skip to content

Commit 2a43444

Browse files
committed
small changes
1 parent 1c07065 commit 2a43444

14 files changed

+21
-31
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
* text=auto
22

33
*.blade.php diff=html
4-
*.css linguist-vendored
4+
*global.css linguist-vendored
5+
*auth.css linguist-vendored
56
*.html diff=html
67
*.md diff=markdown
78
*.php diff=php

public/css/customers.css

-3
This file was deleted.

public/css/global.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
--bs-body-font-weight: 400;
5959
--bs-body-line-height: 1.5;
6060
--bs-body-color: #212529;
61-
--bs-body-bg: #fff;
61+
--bs-body-bg: #eee;
6262
}
6363

6464
*,
@@ -81,7 +81,7 @@ body {
8181
line-height: var(--bs-body-line-height);
8282
color: var(--bs-body-color);
8383
text-align: var(--bs-body-text-align);
84-
background-color: var(--bs-body-bg);
84+
background-color: var(--bs-body-bg) !important;
8585
-webkit-text-size-adjust: 100%;
8686
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
8787
}

public/css/home.css

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
background-color: #fff !important;
3+
}
4+
15
/* Hero home user */
26
#hero {
37
height: calc(100vh - 56px);

public/css/transaction.css

-3
This file was deleted.

resources/views/home/customers.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@extends('/layouts/main')
22

33
@push('css-dependencies')
4-
<link rel="stylesheet" href="/css/customers.css">
54
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css" />
65
@endpush
76

resources/views/order/make_order.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class="form-control @error('quantity') is-invalid @enderror" onchange="myCounter
387387
(no coupon)
388388
@else
389389
<span class="align-items-center">
390-
<label for="use_coupon">Use</label>
390+
<label for="use_coupon" style="cursor:pointer">(use coupon</label>
391391
</span>
392392
<span>
393393
<input id="use_coupon" type="checkbox" onchange="changeStatesCoupon()">

resources/views/partials/order/order_lists.blade.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@
3535
</a>
3636
@endif
3737

38-
@if (isset($row->product_id) && auth()->user()->id == 2 && $row->is_done == 1)
38+
@if (isset($row->product_id) && auth()->user()->role_id == 2 && $row->is_done == 1)
3939
<div>
40-
<a href="/order/rewiew/" class="link-info" style="text-decoration: none; font-size:0.9rem;">
40+
<a href="/review/product/{{ $row->product_id }}" class="link-info"
41+
style="text-decoration: none; font-size:0.9rem;">
4142
Review Now!
4243
</a>
4344
</div>
4445
@endif
4546
</div>
4647
@php
47-
if (auth()->user()->id == 1) {
48-
$dest = "/home/customers?username=" . $row["username"];
48+
if (auth()->user()->role_id == 1) {
49+
$dest = "/home/customers?username=" . $row->user->username;
4950
}
5051
else {
5152
$dest = "/profile/my_profile";
@@ -58,7 +59,7 @@
5859
</div>
5960
@else
6061
<div class="col-md-12">order created at {{ $row->created_at->format('d M Y') }} by <a href="{{ $dest }}"
61-
style="text-decoration:none;">{{ "@" . auth()->user()->username }}</a>
62+
style="text-decoration:none;">{{ "@" . $row->user->username }}</a>
6263
</div>
6364
@endif
6465
</div>

resources/views/partials/sidebar.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
1+
<nav class="sb-sidenav accordion sb-sidenav-light" id="sidenavAccordion">
22
<div class="sb-sidenav-menu">
33
<div class="nav">
44
@can("is_admin")

resources/views/partials/topbar.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
1+
<nav class="sb-topnav navbar navbar-expand navbar-light bg-light">
22

33
<a class="navbar-brand ps-3" href="/home">Laracoffee</i> </a>
44

55
<!-- Sidebar Toggle-->
6-
<button class="btn btn-link btn-dark btn-sm order-1 order-lg-0 me-3 me-lg-0" id="sidebarToggle" href="#!"><i
6+
<button class="btn btn-link btn-light btn-sm order-1 order-lg-0 me-3 me-lg-0" id="sidebarToggle" href="#!"><i
77
class="fas fa-bars"></i></button>
88

99
<!-- Nama User/Admin -->
10-
<div style="color: white; " class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">{{
10+
<div style="color: black; " class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">{{
1111
auth()->user()->username }}</div>
1212

1313
<!-- Navbar-->

resources/views/profile/edit_profile.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@endpush
1010

1111
@section('content')
12-
<div class="main-body px-5">
12+
<div class="main-body px-1 px-md-3 px-lg-4 px-xl-5">
1313

1414
@include('/partials/breadcumb')
1515

@@ -105,7 +105,7 @@
105105
</div>
106106
107107
<!-- Save changes button-->
108-
<div class="col-6 d-flex justify-content-start align-items-center">
108+
<div class="col-12 d-flex justify-content-start align-items-center">
109109
<a href="/profile/my_profile" class="btn btn-outline-secondary me-2">Back</a>
110110
<button class="btn btn-dark" type="submit">Save Changes</button>
111111
</div>

resources/views/transaction/add_outcome.blade.php

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
@extends('/layouts/main')
22

3-
@push('css-dependencies')
4-
<link href="/css/transaction.css" rel="stylesheet" />
5-
@endpush
6-
73
@section('content')
84
<div class="container-fluid pt-4">
95

resources/views/transaction/edit_outcome.blade.php

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
@extends('/layouts/main')
22

3-
@push('css-dependencies')
4-
<link href="/css/transaction.css" rel="stylesheet" />
5-
@endpush
6-
73
@section('content')
84
<div class="container-fluid pt-4">
95

resources/views/transaction/index.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@extends('/layouts/main')
22

33
@push('css-dependencies')
4-
<link href="/css/transaction.css" rel="stylesheet" />
54
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css" />
65
@endpush
76

0 commit comments

Comments
 (0)