Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/RiwRiwara/Ezevent
Browse files Browse the repository at this point in the history
  • Loading branch information
RiwRiwara committed Feb 7, 2024
2 parents ca748d2 + 5c8b632 commit ba9f545
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 33 deletions.
16 changes: 16 additions & 0 deletions resources/views/components/forms/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@props([
'name' => 'input',
'id' => null,
'placeholder' => null
])
<div class="flex items-center ps-3">
<input
id="{{$id ?? $name}}"
name="{{$name}}"
type="checkbox"
value=""
class="w-4 h-4 text-neutral-6
bg-gray-100 border-gray-6 rounded focus:ring-blue-500
dark:focus:ring-neutral-6 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700
focus:ring-2 dark:bg-gray-600 dark:border-gray-500">
</div>
9 changes: 9 additions & 0 deletions resources/views/components/forms/time-picker.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@props([
'name' => 'time_input',
'id' => null,
'placeholder' => 'เลือกเวลา'
])

<div class="relative w-full">
<input type="time" id="{{$id ?? $name}}" name="{{$name}}" type="text" class="rounded-lg focus:ring-0 hover:border-primary-3 bg-gray-0 border-2 border-neutral-2 text-neutral-9 text-sm focus:border-neutral-5 block w-full ps-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-neutral-5 custom-input dark:focus:border-neutral-5" placeholder="{{$placeholder}}">
</div>
52 changes: 26 additions & 26 deletions resources/views/guest/createEvent.blade.php

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions resources/views/guest/crmhomepage.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<x-guest-layout>
@include('components.sidebar')
<h1 class="text-3xl px-20 py-5 text-left text-primary-5">Ezevent</h1>
<h2 class="text-2xl px-20 py-5 text-left text-gray-9">Junior Architecture CRM</h2>
<!-- ใส่ Nav Bar ตรงเน้ -->

<div class="relative overflow-x-auto px-20">
<div class="grid grid-cols-2 py-10">
<h3 class="text-2xl text-gray-9">Filter Customers:</h3>
<div class="grid justify-items-end">
<button type="submit" class="block w-72 h-12 rounded-md bg-neutral-9 text-center text-xl font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Send Email</button>
</div>
</div>
<div class="flex">
<div>
<h1>Name</h1>
<x-forms.input-outline-primary name="event_name" label="Name" type="text" />
</div>
<div class="px-10">
<h1>Mobile Phone</h1>
<x-forms.input-outline-primary name="event_name" label="Mobile Phone" type="text" />
</div>
<div>
<h1>Duty</h1>
<div class="inline-flex rounded-md shadow-sm" role="group">
<button type="button" class="px-4 py-2 text-sm font-medium text-gray-900 bg-transparent border-2 border-neutral-2 hover:border-primary-3 rounded-s-lg hover:bg-primary-3 focus:z-10 focus:ring-2 focus:ring-gray-500 focus:bg-primary-3 dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700">
Staff
</button>
<button type="button" class="px-4 py-2 text-sm font-medium text-gray-900 bg-transparent border-2 border-neutral-2 hover:border-primary-3 rounded-e-lg hover:bg-primary-3 focus:z-10 focus:ring-2 focus:ring-gray-500 focus:bg-primary-3 dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700">
Participant
</button>
</div>

</div>
</div>
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
<thead class="text-lg text-gray-9 font-semibold dark:bg-gray-700 dark:text-gray-400">
<tr class="border-b border-gray-9">
<th scope="col" class="px-6 py-3">
Name
</th>
<th scope="col" class="px-6 py-3">
Age
</th>
<th scope="col" class="px-6 py-3">
Gender
</th>
<th scope="col" class="px-6 py-3">
Phone
</th>
<th scope="col" class="px-6 py-3">
Location
</th>
<th scope="col" class="px-6 py-3">
Status
</th>
<th scope="col" class="px-6 py-3">
</th>
</tr>
</thead>
<tbody>
<tr class="bg-white border-b border-gray-9 dark:bg-gray-800 dark:border-gray-700">
<th scope="row" class="px-6 py-4 font-medium text-gray-9 whitespace-nowrap dark:text-white">
คำมี คำซา
</th>
<td class="px-6 py-4">
90
</td>
<td class="px-6 py-4">
ชาย
</td>
<td class="px-6 py-4">
099-9999999 </td>
<td class="px-6 py-4">
BKK </td>
<td class="px-6 py-4">
Checked </td>
<td class="px-6 py-4">
<button type="submit" class="block w-24 h-6 rounded-md border border-neutral-9 text-neutral-9 text-center text-xl shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Send</button>
</td>
</tr>
</tbody>
</table>
</div>

</x-guest-layout>
```
Empty file.
2 changes: 1 addition & 1 deletion resources/views/guest/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="mb-2">
<p class="block text-md font-bold text-primary-9 mb-3">{{__('field_name.address_information')}}</p>

<x-forms.textarea-outline-primary name="address" label="{{__('field_name.address')}}" placeholder="{{__('field_name.add_address')}}"/>
<x-forms.textarea-outline-primary name="address" label="{{__('field_name.address')}}" placeholder="{{__('field_name.add_address')}}" />

<div class="mt-2 row">
<div class="col-md-3 mb-3">
Expand Down
9 changes: 4 additions & 5 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
integrity="sha384-4LISF5TTJX/fLmGSxO53rV4miRxdg84mZsxmO8Rx5jGtp/LbrixFETvWa5a6sESd" crossorigin="anonymous">
<title>{{ isset($title) ? $title : config('app.name', 'Laravel') }}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" integrity="sha384-4LISF5TTJX/fLmGSxO53rV4miRxdg84mZsxmO8Rx5jGtp/LbrixFETvWa5a6sESd" crossorigin="anonymous">
<title>{{ isset($title) ? $title : config('app.name', 'Laravel') }}</title>
<link rel="icon" href="{{ asset('images/Logo.png') }}" type="image/x-icon" />
<link href="{{ asset('css/base.css') }}" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/datepicker.min.js"></script>

@if (config('app.env', 'production') == 'production')
<link href="https://ezevent.online/public/build/assets/{{env('CSS_BUILD_FILE_NAME')}}" rel="stylesheet"
type="text/css" />
<link href="https://ezevent.online/public/build/assets/{{env('CSS_BUILD_FILE_NAME')}}" rel="stylesheet" type="text/css" />
@else
@vite('resources/css/app.css')
@endif
Expand Down
8 changes: 7 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
})->middleware(['auth', 'verified'])->name('dashboard');

Route::middleware('guest')->group(function () {

Route::get('/', function (Request $request) {
$userAgent = $request->header('User-Agent');
return view('welcome', ['userAgent' => $userAgent]);
Expand All @@ -37,6 +37,12 @@
Route::get('/eventpage', function () {
return view('guest.eventpage');
});
Route::get('/crmhomepage', function () {
return view('guest.crmhomepage');
});
Route::get('/messagecrm', function () {
return view('guest.messagecrm');
});
});


Expand Down

0 comments on commit ba9f545

Please sign in to comment.