Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
create static rent form
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed May 10, 2022
1 parent 4d4a9b1 commit 568d34b
Show file tree
Hide file tree
Showing 15 changed files with 413 additions and 6 deletions.
12 changes: 12 additions & 0 deletions app/Http/Controllers/RentController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class RentController extends Controller
{
public function carFormView() {
return view('rent-form');
}
}
4 changes: 4 additions & 0 deletions app/View/Components/Navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ public function render()
public function isRent($option) {
return $option == 'Rent';
}

public function isSelected ($option) {
return $option == $this->selected;
}
}
28 changes: 28 additions & 0 deletions app/View/Components/text-area.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace App\View\Components;

use Illuminate\View\Component;

class text-area extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
//
}

/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.text-area');
}
}
Loading

0 comments on commit 568d34b

Please sign in to comment.