feat:implement login register blade

This commit is contained in:
2026-08-15 15:58:15 +03:30
parent 996a68d3b2
commit 8fa8d82c29
9 changed files with 698 additions and 10 deletions
@@ -9,11 +9,12 @@ class LoginController extends Controller
{ {
public function index() public function index()
{ {
return view('auth.login');
} }
public function post() public function post()
{ {
} }
} }
@@ -9,7 +9,7 @@ class RegisterController extends Controller
{ {
public function index() public function index()
{ {
return view('auth.register');
} }
public function post() public function post()
+4 -3
View File
@@ -10,10 +10,11 @@ use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticated ;
/** /**
* Class User * Class User
* *
* @property int $id * @property int $id
* @property string $first_name * @property string $first_name
* @property string $last_name * @property string $last_name
@@ -33,13 +34,13 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property Carbon $created_at * @property Carbon $created_at
* @property Carbon $updatet_at * @property Carbon $updatet_at
* @property string $deleted_at * @property string $deleted_at
* *
* @property File|null $file * @property File|null $file
* @property Collection|Comment[] $comments * @property Collection|Comment[] $comments
* *
* @package App\Models * @package App\Models
*/ */
class User extends Model class User extends Authenticated
{ {
use SoftDeletes; use SoftDeletes;
protected $table = 'users'; protected $table = 'users';
+3 -1
View File
@@ -14,7 +14,9 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up', health: '/up',
) )
->withMiddleware(function (Middleware $middleware): void { ->withMiddleware(function (Middleware $middleware): void {
//
$middleware->redirectGuestsTo(fn(Illuminate\Http\Request $request) => route('auth.login.index'));
$middleware->redirectUsersTo(fn(Illuminate\Http\Request $request) => route('index'));
}) })
->withExceptions(function (Exceptions $exceptions): void { ->withExceptions(function (Exceptions $exceptions): void {
// //
+1 -1
View File
@@ -64,7 +64,7 @@ return [
'providers' => [ 'providers' => [
'users' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => env('AUTH_MODEL', User::class), 'model' => User::class,
], ],
// 'users' => [ // 'users' => [
+291
View File
@@ -0,0 +1,291 @@
-- phpMyAdmin SQL Dump
-- version 5.2.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 15, 2026 at 12:25 PM
-- Server version: 8.4.7
-- PHP Version: 8.3.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `airline-agency`
--
-- --------------------------------------------------------
--
-- Table structure for table `airlines`
--
DROP TABLE IF EXISTS `airlines`;
CREATE TABLE IF NOT EXISTS `airlines` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`code` varchar(20) COLLATE utf32_persian_ci NOT NULL,
`file_id` bigint UNSIGNED NOT NULL,
`status` tinyint NOT NULL COMMENT '0:disable|1:enable',
`created_at` timestamp NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `airports`
--
DROP TABLE IF EXISTS `airports`;
CREATE TABLE IF NOT EXISTS `airports` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`city` varchar(255) COLLATE utf32_persian_ci NOT NULL,
`code` varchar(10) COLLATE utf32_persian_ci NOT NULL,
`country` varchar(255) COLLATE utf32_persian_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `bookings`
--
DROP TABLE IF EXISTS `bookings`;
CREATE TABLE IF NOT EXISTS `bookings` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` bigint UNSIGNED NOT NULL,
`flight_id` bigint UNSIGNED NOT NULL,
`tour_date_id` bigint UNSIGNED NOT NULL,
`adult_count` int UNSIGNED NOT NULL,
`child_count` int UNSIGNED NOT NULL,
`total_price` int UNSIGNED NOT NULL,
`tracking_code` varchar(50) COLLATE utf32_persian_ci NOT NULL,
`created_at` timestamp NOT NULL,
`status` tinyint NOT NULL COMMENT '0 = pending\r\n1 = confirmed\r\n2 = cancelled',
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `bookings_fk1` (`user_id`),
KEY `bookings_fk2` (`flight_id`),
KEY `bookings_fk3` (`tour_date_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `booking_passengers`
--
DROP TABLE IF EXISTS `booking_passengers`;
CREATE TABLE IF NOT EXISTS `booking_passengers` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`booking_id` bigint UNSIGNED NOT NULL,
`first_name` varchar(100) COLLATE utf32_persian_ci NOT NULL,
`last_name` varchar(100) COLLATE utf32_persian_ci NOT NULL,
`national_code` varchar(20) COLLATE utf32_persian_ci NOT NULL,
`passenger_type` tinyint NOT NULL COMMENT '0 = child\r\n1 = adult',
`birth_date` date NOT NULL,
`created_at` timestamp NOT NULL,
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE IF NOT EXISTS `comments` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` bigint UNSIGNED NOT NULL,
`comment` text COLLATE utf32_persian_ci NOT NULL,
`status` tinyint NOT NULL COMMENT '0:pending|1:approaved |2:rejected',
`created_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `comment_fk1` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `files`
--
DROP TABLE IF EXISTS `files`;
CREATE TABLE IF NOT EXISTS `files` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(200) COLLATE utf32_persian_ci NOT NULL,
`extension` varchar(10) COLLATE utf32_persian_ci NOT NULL,
`size` bigint UNSIGNED NOT NULL COMMENT 'bytes',
`original_name` varchar(350) COLLATE utf32_persian_ci NOT NULL,
`path` varchar(30) COLLATE utf32_persian_ci NOT NULL,
`created_at` timestamp NOT NULL,
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `flights`
--
DROP TABLE IF EXISTS `flights`;
CREATE TABLE IF NOT EXISTS `flights` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`summary` varchar(512) COLLATE utf32_persian_ci NOT NULL,
`arrival_aiport_id` bigint UNSIGNED NOT NULL,
`file_id` bigint UNSIGNED NOT NULL,
`flight_type` tinyint NOT NULL COMMENT '0:departure|1:return|2:roundtrip',
`departure_time` int NOT NULL,
`price` decimal(10,0) NOT NULL,
`deprature_airport_id` bigint UNSIGNED NOT NULL,
`destination` varchar(255) COLLATE utf32_persian_ci NOT NULL,
`airline_id` bigint UNSIGNED NOT NULL,
`capacity` int UNSIGNED NOT NULL,
`status` tinyint NOT NULL COMMENT '0:disable |1:enable',
`created_at` timestamp NOT NULL,
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `flights_fk1` (`airline_id`),
KEY `flights_fk2` (`file_id`),
KEY `flights_fk3` (`arrival_aiport_id`),
KEY `flights_fk4` (`deprature_airport_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tours`
--
DROP TABLE IF EXISTS `tours`;
CREATE TABLE IF NOT EXISTS `tours` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`summary` varchar(512) COLLATE utf32_persian_ci NOT NULL,
`descriptions` text COLLATE utf32_persian_ci NOT NULL,
`file_id` bigint UNSIGNED NOT NULL,
`origin` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`destination` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`duration` int UNSIGNED NOT NULL,
`status` tinyint NOT NULL COMMENT '0:enable|1:disable',
`created_at` timestamp NOT NULL,
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `tours_fk1` (`file_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tour_dates`
--
DROP TABLE IF EXISTS `tour_dates`;
CREATE TABLE IF NOT EXISTS `tour_dates` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`tour_id` bigint UNSIGNED NOT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`price` int UNSIGNED NOT NULL,
`capacity` int UNSIGNED NOT NULL,
`status` tinyint NOT NULL COMMENT '0:disable |1:enable',
`created_at` timestamp NOT NULL,
`updated_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `tours_dates_fk1` (`tour_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`first_name` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`last_name` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`national_code` varchar(10) COLLATE utf32_persian_ci NOT NULL,
`gender` tinyint NOT NULL COMMENT '0:male | 1:female |2:unknown',
`marital_status` tinyint NOT NULL COMMENT '0:single |1:marrid |2:separated',
`spouse_name` varchar(256) COLLATE utf32_persian_ci DEFAULT NULL,
`mobile` varchar(11) COLLATE utf32_persian_ci NOT NULL,
`email` varchar(150) COLLATE utf32_persian_ci NOT NULL,
`image_id` bigint UNSIGNED DEFAULT NULL,
`username` varchar(200) COLLATE utf32_persian_ci NOT NULL,
`password` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`password_confirmation` varchar(250) COLLATE utf32_persian_ci NOT NULL,
`user_province` varchar(30) COLLATE utf32_persian_ci NOT NULL,
`user_city` varchar(30) COLLATE utf32_persian_ci NOT NULL,
`status` tinyint UNSIGNED DEFAULT NULL COMMENT '0:disable | 1:pending | 2:enable ',
`created_at` timestamp NOT NULL,
`updatet_at` timestamp NOT NULL,
`deleted_at` timestamp NOT NULL,
PRIMARY KEY (`id`),
KEY `user_img_fk` (`image_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_persian_ci;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
ADD CONSTRAINT `bookings_fk1` FOREIGN KEY (`user_id`) REFERENCES `bookings` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `bookings_fk2` FOREIGN KEY (`flight_id`) REFERENCES `flights` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `bookings_fk3` FOREIGN KEY (`tour_date_id`) REFERENCES `tour_dates` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
--
-- Constraints for table `comments`
--
ALTER TABLE `comments`
ADD CONSTRAINT `comment_fk1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
--
-- Constraints for table `flights`
--
ALTER TABLE `flights`
ADD CONSTRAINT `flights_fk1` FOREIGN KEY (`airline_id`) REFERENCES `airlines` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `flights_fk2` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `flights_fk3` FOREIGN KEY (`arrival_aiport_id`) REFERENCES `airports` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `flights_fk4` FOREIGN KEY (`deprature_airport_id`) REFERENCES `airports` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
--
-- Constraints for table `tours`
--
ALTER TABLE `tours`
ADD CONSTRAINT `tours_fk1` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
--
-- Constraints for table `tour_dates`
--
ALTER TABLE `tour_dates`
ADD CONSTRAINT `tours_dates_fk1` FOREIGN KEY (`tour_id`) REFERENCES `tours` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `user_img_fk` FOREIGN KEY (`image_id`) REFERENCES `files` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+60
View File
@@ -0,0 +1,60 @@
@extends('layouts.app')
@section('content')
<main class="main">
<div class="site-breadcrumb" style="background: url({{asset('assets/img/breadcrumb/02.jpg')}})">
<div class="container">
<h2 class="breadcrumb-title">ورود</h2>
<ul class="breadcrumb-menu">
<li><a href="{{route('index')}}">صفحه اصلی</a></li>
<li class="active">ورود</li>
</ul>
</div>
</div>
<div class="login-area py-120">
<div class="container">
<div class="col-md-5 mx-auto">
<div class="login-form">
<div class="login-header">
<img src="assets/img/logo/logo-dark.png" alt>
<p>با حساب MyTrip خود وارد شوید</p>
</div>
<form action="#">
<div class="form-group">
<label>آدرس ایمیل</label>
<div class="form-group-icon">
<input type="email" class="form-control" placeholder="ایمیل خود را وارد کنید">
<i class="far fa-envelope"></i>
</div>
</div>
<div class="form-group">
<label>رمز عبور</label>
<div class="form-group-icon">
<input type="password" class="form-control" placeholder="رمز عبور را وارد کنید">
<i class="far fa-lock"></i>
</div>
</div>
<div class="d-flex justify-content-between mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" value id="remember">
<label class="form-check-label" for="remember">
مرا به یاد داشته باش
</label>
</div>
<a href="forgot-password.html" class="forgot-pass">رمز عبور را فراموش کرده اید؟</a>
</div>
<div class="d-flex align-items-center">
<button type="submit" class="theme-btn"><i class="far fa-sign-in"></i> ورود</button>
</div>
</form>
<div class="login-footer">
<p>اکانت ندارید ؟ <a href="{{route('auth.register.index')}}">عضو شدن.</a></p>
</div>
</div>
</div>
</div>
</div>
</main>
@endsection
+333
View File
@@ -0,0 +1,333 @@
@extends('layouts.app')
@section('content')
<main class="main">
<div class="site-breadcrumb" style="background: url({{asset('assets/img/breadcrumb/02.jpg')}})">
<div class="container">
<h2 class="breadcrumb-title">ثبت نام</h2>
<ul class="breadcrumb-menu">
<li><a href="{{route('index')}}">صفحه اصلی</a></li>
<li class="active">ثبت نام</li>
</ul>
</div>
</div>
<div class="login-area py-120">
<div class="container">
<div class="col-md-5 mx-auto">
<div class="login-form">
<div class="login-header">
<img src="{{asset('assets/img/logo/logo-dark.png')}}" alt>
<p>حساب MyTrip خود را ایجاد کنید</p>
</div>
<form action="{{route('auth.register.post')}}"
method="POST">
@csrf
<div class="form-group">
<label>نام</label>
<div class="form-group-icon">
<input type="text"
id="first_name"
name="first_name"
class="form-control"
value="{{old('first_name')}}"
placeholder="اسم شما">
<i class="far fa-user"></i>
</div>
<!-- ERROR -->
@error('first_name')
<span style="color: red"> {{$message}}</span>
@enderror
</div>
<div class="form-group">
<label>نام خانوادگی</label>
<div class="form-group-icon">
<input type="text"
id="last_name"
name="last_name"
class="form-control"
value="{{old('last_name')}}"
placeholder="اسم شما">
<i class="far fa-user"></i>
</div>
<!-- ERROR -->
@error('last_name')
<span style="color: red"> {{$message}}</span>
@enderror
</div>
<div class="form-group">
<label>کد ملی</label>
<div class="form-group-icon">
<input type="text"
id="national_code"
name="national_code"
class="form-control"
value="{{old('national_code')}}"
placeholder="کد ملی خود را وارد کنید">
<i class="far fa-user"></i>
</div>
<!-- ERROR -->
@error('last_name')
<span style="color: red"> {{$message}}</span>
@enderror
</div>
<div class="form-group">
<label>جنسیت</label>
<div class="form-group-icon">
<select
name="gender"
id="gender"
class="form-control"
>
<option value="">جنسیت خود را انتخاب کنید</option>
<option value="male"
{{ old('gender') == 'male' ? 'selected' : '' }}>
مرد
</option>
<option value="female"
{{ old('gender') == 'female' ? 'selected' : '' }}>
زن
</option>
<option value="unknown"
{{ old('gender') == 'unknown' ? 'selected' : '' }}>
نامشخص
</option>
</select>
<i class="far fa-user"></i>
</div>
@error('gender')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>
وضعیت تأهل
(اختیاری)
</label>
<div class="form-group-icon">
<select
name="marital_status"
id="marital_status"
class="form-control"
>
<option value="">وضعیت تأهل خود را انتخاب کنید</option>
<option value="single"
{{ old('marital_status') == 'single' ? 'selected' : '' }}>
مجرد
</option>
<option value="married"
{{ old('marital_status') == 'married' ? 'selected' : '' }}>
متأهل
</option>
<option value="separated"
{{ old('marital_status') == 'separated' ? 'selected' : '' }}>
متارکه
</option>
</select>
<i class="far fa-user"></i>
</div>
@error('marital_status')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>
نام و نام خانوادگی همسر
(اختیاری)
</label>
<div class="form-group-icon">
<input type="text"
id="spouse_name"
name="spouse_name"
class="form-control"
value="{{ old('spouse_name') }}"
placeholder="نام و نام خانوادگی همسر خود را وارد کنید">
<i class="far fa-user"></i>
</div>
@error('spouse_name')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>شماره همراه</label>
<div class="form-group-icon">
<input type="text"
id="mobile"
name="mobile"
class="form-control"
value="{{ old('mobile') }}"
placeholder="شماره همراه خود را وارد کنید">
<i class="far fa-phone"></i>
</div>
@error('mobile')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>آدرس ایمیل</label>
<div class="form-group-icon">
<input type="email"
id="email"
name="email"
class="form-control"
value="{{ old('email') }}"
placeholder="ایمیل خود را وارد کنید">
<i class="far fa-envelope"></i>
</div>
@error('email')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>تصویر پروفایل
(اختیاری)
</label>
<div class="form-group-icon">
<input
type="file"
id="image"
name="image"
class="form-control"
accept=".jpg,.jpeg,.png,.webp"
>
<i class="far fa-image"></i>
</div>
@error('image')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>نام کاربری</label>
<div class="form-group-icon">
<input type="text"
id="username"
name="username"
class="form-control"
value="{{ old('username') }}"
placeholder="نام کاربری خود را وارد کنید">
<i class="far fa-user"></i>
</div>
@error('username')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label>رمز عبور</label>
<div class="form-group-icon">
<input type="password"
class="form-control"
id="password"
name="password"
placeholder="رمز عبور را وارد کنید">
<i class="far fa-lock"></i>
</div>
<!-- ERROR -->
@error('password')
<span style="color: red"> {{$message}}</span>
@enderror
</div>
<div class="form-group">
<label>تکرار رمز عبور
(اختیاری)
</label>
<div class="form-group-icon">
<input type="password"
id="password_confirmation"
name="password_confirmation"
class="form-control"
placeholder="رمز عبور را مجدداً وارد کنید">
<i class="far fa-lock"></i>
</div>
@error('password_confirmation')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
{{-- استان --}}
<div class="form-group">
<label>
استان
(اختیاری)
</label>
<div class="form-group-icon">
<select name="province_id"
id="province_id"
class="form-control">
<option value="">استان خود را انتخاب کنید</option>
{{-- بعداً استان‌ها را از دیتابیس می‌آوریم --}}
</select>
<i class="far fa-map-marker"></i>
</div>
@error('province_id')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
{{-- شهرستان --}}
<div class="form-group">
<label>
شهرستان
(اختیاری)
</label>
<div class="form-group-icon">
<select name="city_id"
id="city_id"
class="form-control">
<option value="">ابتدا استان را انتخاب کنید</option>
</select>
<i class="far fa-map-marker"></i>
</div>
@error('city_id')
<span style="color: red">{{ $message }}</span>
@enderror
</div>
<div class="d-flex align-items-center">
<button type="submit" class="theme-btn"><i class="far fa-paper-plane"></i> ثبت نام</button>
</div>
</form>
<div class="login-footer">
<p>از قبل حساب کاربری دارید؟ <a href="{{route('auth.login.index')}}">وارد شدن.</a></p>
</div>
</div>
</div>
</div>
</div>
</main>
@endsection
+2 -2
View File
@@ -42,8 +42,8 @@
</select> </select>
</div> </div>
<div class="account"> <div class="account">
<a href="#"><i class="far fa-sign-in"></i>وارد شدن</a> <a href="{{route('auth.login.index')}}"><i class="far fa-sign-in"></i>وارد شدن</a>
<a href="#"><i class="far fa-user-tie"></i>ثبت نام</a> <a href="{{route('auth.register.index')}}"><i class="far fa-user-tie"></i>ثبت نام</a>
</div> </div>
</div> </div>
</div> </div>