Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
This commit is contained in:
commit
eb749e58a5
|
@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class Contact extends Model
|
class Contact extends Model
|
||||||
{
|
{
|
||||||
//
|
protected $fillable = [
|
||||||
|
'name_first', "name_last", 'email', 'phone'
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace App;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class Feedback extends Model
|
class Feedbacks extends Model
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
|
@ -18,7 +18,7 @@ class ContactController extends Controller
|
||||||
|
|
||||||
$contact = Contact::query()->paginate($request->input("limit", 20));
|
$contact = Contact::query()->paginate($request->input("limit", 20));
|
||||||
|
|
||||||
return Response::detect("contact.index", [ "contact" => $contact]);
|
return Response::detect("contacts.index", [ "contacts" => $contact]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +28,8 @@ class ContactController extends Controller
|
||||||
*/
|
*/
|
||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
//
|
return Response::detect("contacts.create");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,7 +40,17 @@ class ContactController extends Controller
|
||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
//
|
$requestContact = $request->validate([
|
||||||
|
"name_first" => "required|max:255",
|
||||||
|
"name_last" => "required|max:255",
|
||||||
|
"email" => "required|max:255",
|
||||||
|
"phone" => "required|max:255",
|
||||||
|
]);
|
||||||
|
|
||||||
|
$contact = new Contact($requestContact);
|
||||||
|
$contact->save();
|
||||||
|
|
||||||
|
return Response::detect("contacts.store");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -50,7 +61,8 @@ class ContactController extends Controller
|
||||||
*/
|
*/
|
||||||
public function show($id)
|
public function show($id)
|
||||||
{
|
{
|
||||||
//
|
return Response::detect("contacts.show", [ "contacts" => $id]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +73,8 @@ class ContactController extends Controller
|
||||||
*/
|
*/
|
||||||
public function edit($id)
|
public function edit($id)
|
||||||
{
|
{
|
||||||
//
|
$contact = Contact::find($id);
|
||||||
|
return Response::detect("contacts.edit", ["contact" => $contact]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -73,17 +86,25 @@ class ContactController extends Controller
|
||||||
*/
|
*/
|
||||||
public function update(Request $request, $id)
|
public function update(Request $request, $id)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
|
$data = $request->all();
|
||||||
|
$contact = Contact::find($id);
|
||||||
|
$contact->update($data);
|
||||||
|
$contact->save();
|
||||||
|
|
||||||
|
return Response::detect("contacts.update", [ "contacts" => $contact ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the specified resource from storage.
|
* Remove the specified resource from storage.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function destroy($id)
|
public function destroy(Contact $id)
|
||||||
{
|
{
|
||||||
//
|
$id->delete();
|
||||||
|
return redirect()->route("contacts.index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Feedback;
|
use App\Feedbacks;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ class FeedbackController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
{
|
{
|
||||||
$feedback = Feedback::query()->paginate($request->input("limit", 20));
|
$feedback = Feedbacks::query()->paginate($request->input("limit", 20));
|
||||||
|
|
||||||
return Response::detect("feedback.index", [ "feedback" => $feedback ]);
|
return Response::detect("feedbacks.index", [ "feedback" => $feedback ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,7 +45,7 @@ class FeedbackController extends Controller
|
||||||
"link" => "required|max:255"
|
"link" => "required|max:255"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$feedback = new Feedback($requestBody);
|
$feedback = new Feedbacks($requestBody);
|
||||||
$feedback->save();
|
$feedback->save();
|
||||||
|
|
||||||
return Response::detect("feedback.store");
|
return Response::detect("feedback.store");
|
||||||
|
@ -70,7 +70,7 @@ class FeedbackController extends Controller
|
||||||
*/
|
*/
|
||||||
public function edit($id)
|
public function edit($id)
|
||||||
{
|
{
|
||||||
$feedback = Feedback::find($id);
|
$feedback = Feedbacks::find($id);
|
||||||
|
|
||||||
return Response::detect("feedbacks.edit", [
|
return Response::detect("feedbacks.edit", [
|
||||||
"feedback" => $feedback
|
"feedback" => $feedback
|
||||||
|
@ -90,7 +90,7 @@ class FeedbackController extends Controller
|
||||||
"time" => "required"
|
"time" => "required"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$feedback = Feedback::find($id);
|
$feedback = Feedbacks::find($id);
|
||||||
|
|
||||||
$feedback->update($data);
|
$feedback->update($data);
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ class FeedbackController extends Controller
|
||||||
*/
|
*/
|
||||||
public function destroy($id)
|
public function destroy($id)
|
||||||
{
|
{
|
||||||
$feedback = Feedback::find($id);
|
$feedback = Feedbacks::find($id);
|
||||||
$feedback->delete();
|
$feedback->delete();
|
||||||
|
|
||||||
return Response::detect("feedbacks.destroy");
|
return Response::detect("feedbacks.destroy");
|
||||||
|
|
|
@ -0,0 +1,185 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Staff;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Http\Response;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
|
|
||||||
|
class StaffController extends Controller
|
||||||
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
// $this->middleware([ "auth" ])->only("logout");
|
||||||
|
// $this->middleware([ "guest" ])->only("login");
|
||||||
|
//
|
||||||
|
// $this->middleware([ "permission:staff.list", "role:admin" ])->only("index");
|
||||||
|
// $this->middleware([ "permission:staff.show", "role:admin" ])->only("show");
|
||||||
|
// $this->middleware([ "permission:staff.edit", "role:admin" ])->only([ "edit", "update" ]);
|
||||||
|
// $this->middleware([ "permission:staff.delete", "role:admin" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*
|
||||||
|
* @param Request $request
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function index(Request $request)
|
||||||
|
{
|
||||||
|
$staffs = Staff::query()->paginate($request->query("page", 20));
|
||||||
|
|
||||||
|
return Response::detect("staff.index", [ "staffs" => $staffs ]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return Response::detect("staff.create");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Http\Request $request
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
$data = $request->validate([
|
||||||
|
"name_first" => "required|max:255",
|
||||||
|
"name_last" => "required|max:255",
|
||||||
|
"email" => "required|email|unique:staff",
|
||||||
|
"password" => "required|max:60",
|
||||||
|
"phone" => "required|unique:staff"
|
||||||
|
|
||||||
|
]);
|
||||||
|
|
||||||
|
$staff = new Staff($data);
|
||||||
|
$staff->save();
|
||||||
|
|
||||||
|
return Response::detect("staff.store");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function show($id)
|
||||||
|
{
|
||||||
|
$staff = Staff::find($id);
|
||||||
|
|
||||||
|
return Response::detect("staff.show", [
|
||||||
|
"staff" => $staff
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
$staff = Staff::find($id);
|
||||||
|
|
||||||
|
return Response::detect("staff.edit", [
|
||||||
|
"staff" => $staff
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Http\Request $request
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function update(Request $request, $id)
|
||||||
|
{
|
||||||
|
$data = $request->all();
|
||||||
|
|
||||||
|
// $data = $request->validate([
|
||||||
|
// "name_first" => "max:255",
|
||||||
|
// "name_last" => "max:255",
|
||||||
|
// "email" => "email|unique:staff",
|
||||||
|
// "password" => "max:60",
|
||||||
|
// "phone" => "unique:staff",
|
||||||
|
// ]);
|
||||||
|
|
||||||
|
// Validates if the staff is updating itself or another staff.
|
||||||
|
// if($id === Auth::id()) {
|
||||||
|
// $staff = Auth::staff();
|
||||||
|
//
|
||||||
|
// $staff->update($data);
|
||||||
|
//
|
||||||
|
// $staff->save();
|
||||||
|
// return Response::detect("staff.edit", [
|
||||||
|
// "staff" => $staff
|
||||||
|
// ]);
|
||||||
|
// }
|
||||||
|
|
||||||
|
//TODO: Implement when security's ready!!!
|
||||||
|
// else if(Auth::staff()->hasPermissionTo("staff.edit")) {
|
||||||
|
$staff = Staff::find($id);
|
||||||
|
|
||||||
|
/** @var Staff $staff */
|
||||||
|
$staff->update($data);
|
||||||
|
|
||||||
|
$staff->save();
|
||||||
|
// }
|
||||||
|
|
||||||
|
$staffs = Staff::query()->paginate(20);
|
||||||
|
|
||||||
|
return Response::detect("staff.index", [
|
||||||
|
"staffs" => $staffs
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
|
*/
|
||||||
|
public function destroy(Staff $id)
|
||||||
|
{
|
||||||
|
$id->delete();
|
||||||
|
return redirect()->route("staff.index");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*******************************************/
|
||||||
|
/* Authentication */
|
||||||
|
/*******************************************/
|
||||||
|
|
||||||
|
public function showLogin() {
|
||||||
|
return view("admin.staff.login");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function login(Request $request) {
|
||||||
|
$data = $request->only("email", "password");
|
||||||
|
|
||||||
|
if(Auth::attempt($data)) {
|
||||||
|
//TODO: Implement home?
|
||||||
|
return redirect()->route("staff.index");
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->back(303);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function logout(Request $request) {
|
||||||
|
Auth::logout();
|
||||||
|
|
||||||
|
return redirect()->to("/");
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Notifications\Notifiable;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use Spatie\Permission\Traits\HasRoles;
|
||||||
|
|
||||||
|
class Staff extends Model
|
||||||
|
{
|
||||||
|
use Notifiable;
|
||||||
|
use HasRoles;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $fillable = [
|
||||||
|
'name_first', "name_last", 'email', 'password', "phone"
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that should be hidden for arrays.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $hidden = [
|
||||||
|
'password', 'remember_token',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that should be cast to native types.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $casts = [
|
||||||
|
'email_verified_at' => 'datetime',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function setPasswordAttribute($password) {
|
||||||
|
$this->attributes["password"] = Hash::make($password);
|
||||||
|
}
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ class CreateFeedbacks extends Migration
|
||||||
Schema::create('feedbacks', function (Blueprint $table) {
|
Schema::create('feedbacks', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string("message");
|
$table->string("message");
|
||||||
|
$table->string("suggestion_form"); //Skriver om det er Ris el. Ros
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,14 @@ class CreateContact extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('contact', function (Blueprint $table) {
|
Schema::create('contacts', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
$table->string('name_first', 255);
|
||||||
|
$table->string('name_last', 255);
|
||||||
|
$table->string('email', 255);
|
||||||
|
$table->integer('phone');
|
||||||
|
//$table->unique('email');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateStaffTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('staff', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('name_first');
|
||||||
|
$table->string('name_last');
|
||||||
|
$table->string('email')->unique();
|
||||||
|
$table->timestamp('email_verified_at')->nullable();
|
||||||
|
$table->string('password');
|
||||||
|
$table->integer("phone")->unique();
|
||||||
|
$table->rememberToken();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('staff');
|
||||||
|
}
|
||||||
|
}
|
|
@ -6608,12 +6608,16 @@ main {
|
||||||
.tbl {
|
.tbl {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tbl td,
|
.tbl td,
|
||||||
.tbl th {
|
.tbl th {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tbl tr:nth-child(even) {
|
.tbl tr:nth-child(even) {
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
.tbl {
|
.tbl {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tbl td, .tbl th {
|
.tbl td, .tbl th {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tbl tr:nth-child(even){background-color: rgba(0, 0, 0, 0.1);}
|
.tbl tr:nth-child(even){background-color: rgba(0, 0, 0, 0.1);}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakter - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="" class="text-white">Opret Kontakt</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<h1>Opret Kontakt:</h1>
|
||||||
|
<form method="post" action="{{ route("contacts.store") }}">
|
||||||
|
@csrf
|
||||||
|
<label for="name_first">Fornavn:</label>
|
||||||
|
<input type="text" name="name_first" id="name_first" placeholder="Fornavn" required>
|
||||||
|
<label for="name_last">Efternavn:</label>
|
||||||
|
<input type="text" name="name_last" id="name_last" placeholder="Efternavn" required>
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" name="email" id="email" placeholder="x@y.z" required>
|
||||||
|
<label for="tel">Telefon nr:</label>
|
||||||
|
<input type="tel" name="phone" id="tel" placeholder="12345678" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required>
|
||||||
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||||
|
</form>
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakter - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="" class="text-white">Slet Kontakt</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
Din kontakt blev slettet
|
||||||
|
@endsection
|
|
@ -0,0 +1,27 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakt - Rediger
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('contacts.edit', ['contact' => $contact]) }}" class="text-white">Rediger Kontakt</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<h1>Rediger Kontakt:</h1>
|
||||||
|
<form method="post" action="{{ route("contacts.update", ['contact' => $contact]) }}">
|
||||||
|
@csrf
|
||||||
|
@method("put")
|
||||||
|
<label for="name_first">Fornavn:</label>
|
||||||
|
<input type="text" name="name_first" id="name_first" placeholder="Fornavn" value="{{ $contact->name_first }}" required>
|
||||||
|
<label for="name_last">Efternavn:</label>
|
||||||
|
<input type="text" name="name_last" id="name_last" placeholder="Efternavn" value="{{ $contact->name_last }}" required>
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" name="email" id="email" placeholder="x@y.z" value="{{ $contact->email }}" required>
|
||||||
|
<label for="tel">Telefon nr:</label>
|
||||||
|
<input type="tel" name="phone" id="tel" placeholder="12345678" value="{{ $contact->phone }}" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required>
|
||||||
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||||
|
</form>
|
||||||
|
@endsection
|
|
@ -0,0 +1,33 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Events - Vis
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="" class="text-white">Vis Kontakter</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<table class="tbl">
|
||||||
|
<tr>
|
||||||
|
<th>Kontakt Navn</th>
|
||||||
|
<th>Titel</th>
|
||||||
|
<th>E-mail</th>
|
||||||
|
<th>Tlf</th>
|
||||||
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||||
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||||
|
</tr>
|
||||||
|
@foreach($contacts as $contact)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $contact->name_first }}</td>
|
||||||
|
<td>{{ $contact->name_last }}</td>
|
||||||
|
<td>{{ $contact->email }}</td>
|
||||||
|
<td>{{ $contact->phone }}</td>
|
||||||
|
<td><a href="{{ route("contacts.edit", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
|
<td><a href="{{ route("contacts.destroy", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
@endsection
|
|
@ -0,0 +1,13 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakter - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="" class="text-white">Slet Kontakt</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakter - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="" class="text-white">Opbevar Kontakt</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
Kontakten blev (ikke) oprettet.
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Kontakt - Rediger
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('contacts.update', ['contact' => $contacts]) }}" class="text-white">Rediger Bruger</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
Kontakten blev (ikke) redigeret.
|
||||||
|
@endsection
|
|
@ -0,0 +1,27 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Feedback - Vis
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('feedbacks.index') }}" class="text-white">Vis Feedback</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<table class="tbl">
|
||||||
|
<tr>
|
||||||
|
<th>Feedback Besked</th>
|
||||||
|
<th>Ris el. Ros</th>
|
||||||
|
</tr>
|
||||||
|
@foreach($feedback as $fb)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $fb->message }}</td>
|
||||||
|
<td>{{ $fb->suggestion_form }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{ $feedback->links() }}
|
||||||
|
@endsection
|
|
@ -28,6 +28,15 @@
|
||||||
<a href="{{ route("menu-plans.create") }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Menuplan</a>
|
<a href="{{ route("menu-plans.create") }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Menuplan</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="segment">
|
||||||
|
<h3 class="text-white">Aktiviteter</h3>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route("events.index") }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Aktiviteter</a>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route("events.create") }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Aktivitet</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="segment">
|
<div class="segment">
|
||||||
<h3 class="text-white">Vaskemaskiner</h3>
|
<h3 class="text-white">Vaskemaskiner</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -48,6 +57,24 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('external-links.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Link</a>
|
<a href="{{ route('external-links.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Link</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route("contacts.create") }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Kontakt</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="segment">
|
||||||
|
<h3 class="text-white">Personale</h3>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route('staff.index') }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Personale</a>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route('staff.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Personal</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="segment">
|
||||||
|
<h3 class="text-white">Feedback</h3>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Feedback</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-85" style="background-color: #cccccc;">
|
<div class="w-85" style="background-color: #cccccc;">
|
||||||
|
|
|
@ -14,19 +14,13 @@
|
||||||
<form action="{{ action('MenuPlanController@store') }}" method="post">
|
<form action="{{ action('MenuPlanController@store') }}" method="post">
|
||||||
@csrf
|
@csrf
|
||||||
<label for="monday">Mandag:</label>
|
<label for="monday">Mandag:</label>
|
||||||
<input type="text" name="monday" id="monday" required>
|
<input type="text" name="monday" id="monday" placeholder="Hawaii Pizza" required>
|
||||||
<label for="tuesday">Tirsdag:</label>
|
<label for="tuesday">Tirsdag:</label>
|
||||||
<input type="text" name="tuesday" id="tuesday" required>
|
<input type="text" name="tuesday" id="tuesday" placeholder="Pasta Bolognese" required>
|
||||||
<label for="wednesday">Onsdag:</label>
|
<label for="wednesday">Onsdag:</label>
|
||||||
<input type="text" name="wednesday" id="wednesday" required>
|
<input type="text" name="wednesday" id="wednesday" placeholder="Pandekager" required>
|
||||||
<label for="thursday">Torsdag:</label>
|
<label for="thursday">Torsdag:</label>
|
||||||
<input type="text" name="thursday" id="thursday" required>
|
<input type="text" name="thursday" id="thursday" placeholder="Bøf med løg" required>
|
||||||
<label for="friday">Fredag:</label>
|
|
||||||
<input type="text" name="friday" id="friday" required>
|
|
||||||
<label for="saturday">Lørdag:</label>
|
|
||||||
<input type="text" name="saturday" id="saturday" required>
|
|
||||||
<label for="sunday">Søndag:</label>
|
|
||||||
<input type="text" name="sunday" id="sunday" required>
|
|
||||||
|
|
||||||
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -22,12 +22,6 @@
|
||||||
<input type="text" name="wednesday" id="onsdag" value="{{ $menuplan->wednesday }}" required>
|
<input type="text" name="wednesday" id="onsdag" value="{{ $menuplan->wednesday }}" required>
|
||||||
<label for="torsdag">Torsdag:</label>
|
<label for="torsdag">Torsdag:</label>
|
||||||
<input type="text" name="thursday" id="torsdag" value="{{ $menuplan->thursday }}" required>
|
<input type="text" name="thursday" id="torsdag" value="{{ $menuplan->thursday }}" required>
|
||||||
<label for="fredag">Fredag:</label>
|
|
||||||
<input type="text" name="friday" id="fredag" value="{{ $menuplan->friday }}" required>
|
|
||||||
<label for="lørdag">Lørdag:</label>
|
|
||||||
<input type="text" name="saturday" id="lørdag" value="{{ $menuplan->saturday }}" required>
|
|
||||||
<label for="søndag">Søndag:</label>
|
|
||||||
<input type="text" name="sunday" id="søndag" value="{{ $menuplan->sunday }}" required>
|
|
||||||
|
|
||||||
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -16,9 +16,6 @@
|
||||||
<th>Tirsdag</th>
|
<th>Tirsdag</th>
|
||||||
<th>Onsdag</th>
|
<th>Onsdag</th>
|
||||||
<th>Torsdag</th>
|
<th>Torsdag</th>
|
||||||
<th>Fredag</th>
|
|
||||||
<th>Lørdag</th>
|
|
||||||
<th>Søndag</th>
|
|
||||||
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||||
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -28,18 +25,8 @@
|
||||||
<td>{{$menuplan->tuesday}}</td>
|
<td>{{$menuplan->tuesday}}</td>
|
||||||
<td>{{$menuplan->wednesday}}</td>
|
<td>{{$menuplan->wednesday}}</td>
|
||||||
<td>{{$menuplan->thursday}}</td>
|
<td>{{$menuplan->thursday}}</td>
|
||||||
<td>{{$menuplan->friday}}</td>
|
|
||||||
<td>{{$menuplan->saturday}}</td>
|
|
||||||
<td>{{$menuplan->sunday}}</td>
|
|
||||||
<td><a href="{{ route("menu-plans.edit", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
<td><a href="{{ route("menu-plans.edit", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
<td>
|
<td><a href="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
<form method="post" action="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}" class="w-100">
|
|
||||||
@csrf
|
|
||||||
@method("delete")
|
|
||||||
|
|
||||||
<button class="w-100" type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -16,9 +16,6 @@
|
||||||
<th>Tirsdag</th>
|
<th>Tirsdag</th>
|
||||||
<th>Onsdag</th>
|
<th>Onsdag</th>
|
||||||
<th>Torsdag</th>
|
<th>Torsdag</th>
|
||||||
<th>Fredag</th>
|
|
||||||
<th>Lørdag</th>
|
|
||||||
<th>Søndag</th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -27,9 +24,6 @@
|
||||||
<td>{Tirsdag}</td>
|
<td>{Tirsdag}</td>
|
||||||
<td>{Onsdag}</td>
|
<td>{Onsdag}</td>
|
||||||
<td>{Torsdag}</td>
|
<td>{Torsdag}</td>
|
||||||
<td>{Fredag}</td>
|
|
||||||
<td>{Lørdag}</td>
|
|
||||||
<td>{Søndag}</td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.create') }}" class="text-white">Opret Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<h1>Opret Personal:</h1>
|
||||||
|
<form method="post" action="{{ route("staff.store") }}">
|
||||||
|
@csrf
|
||||||
|
<label for="name_first">Fornavn:</label>
|
||||||
|
<input type="text" name="name_first" id="name_first" placeholder="Fornavn" required>
|
||||||
|
<label for="name_last">Efternavn:</label>
|
||||||
|
<input type="text" name="name_last" id="name_last" placeholder="Efternavn" required>
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" name="email" id="email" placeholder="x@y.z" required>
|
||||||
|
<label for="password1">Password:</label>
|
||||||
|
<input type="password" name="password" placeholder="Password" id="password1" required>
|
||||||
|
<label for="password2">Bekræft Password:</label>
|
||||||
|
<input type="password" id="password2" placeholder="Bekræft Password" required>
|
||||||
|
<label for="tel">Telefon nr:</label>
|
||||||
|
<input type="tel" name="phone" id="tel" placeholder="12345678" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required>
|
||||||
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||||
|
</form>
|
||||||
|
@endsection
|
|
@ -0,0 +1,13 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Fjern
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.delete') }}" class="text-white">Fjern Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
@endsection
|
|
@ -0,0 +1,31 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Rediger
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.edit', ['staff' => $staff]) }}" class="text-white">Rediger Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<h1>Rediger Personal:</h1>
|
||||||
|
<form method="post" action="{{ route("staff.update", ['staff' => $staff]) }}">
|
||||||
|
@csrf
|
||||||
|
@method("put")
|
||||||
|
<label for="name_first">Fornavn:</label>
|
||||||
|
<input type="text" name="name_first" id="name_first" value="{{ $staff->name_first }}" required>
|
||||||
|
<label for="name_last">Efternavn:</label>
|
||||||
|
<input type="text" name="name_last" id="name_last" value="{{ $staff->name_last }}" required>
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" name="email" id="email" value="{{ $staff->email }}" required>
|
||||||
|
<label for="password1">Password:</label>
|
||||||
|
<input type="password" name="password" id="password1" value="" required>
|
||||||
|
<label for="password2">Confirm Password:</label>
|
||||||
|
<input type="password" id="password2" value="" required>
|
||||||
|
<label for="tel">Telefon nr:</label>
|
||||||
|
<input type="tel" name="phone" id="tel" value="{{ $staff->phone }}" required>
|
||||||
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||||
|
</form>
|
||||||
|
@endsection
|
|
@ -0,0 +1,35 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Vis
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.index') }}" class="text-white">Vis Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<table class="tbl">
|
||||||
|
<tr>
|
||||||
|
<th>Fornavn</th>
|
||||||
|
<th>Efternavn</th>
|
||||||
|
<th>Email</th>
|
||||||
|
<th>Tlf nr</th>
|
||||||
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||||
|
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||||
|
</tr>
|
||||||
|
@foreach($staffs as $staff)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $staff->name_first }}</td>
|
||||||
|
<td>{{ $staff->name_last }}</td>
|
||||||
|
<td>{{ $staff->email }}</td>
|
||||||
|
<td>{{ $staff->phone }}</td>
|
||||||
|
<td><a href="{{ route("staff.edit", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
|
<td><a href="{{ route("staff.destroy", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{ $staffs->links() }}
|
||||||
|
@endsection
|
|
@ -0,0 +1,27 @@
|
||||||
|
@extends("app.layout.base")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Login
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<main style="background-color: #00788a; height: 100%;">
|
||||||
|
<div class="brand">
|
||||||
|
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
||||||
|
</div>
|
||||||
|
<form action="" method="post">
|
||||||
|
@csrf
|
||||||
|
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
||||||
|
<input class="appinput" type="password" name="password" placeholder="Password" required>
|
||||||
|
<label class="toggle">
|
||||||
|
<input class="toggle__input" type="checkbox" name="rememberpassword">
|
||||||
|
<span class="toggle__label">
|
||||||
|
<span class="toggle__text text-white">Remember password</span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<input class="btn btn-dark" type="submit" value="Sign in">
|
||||||
|
<button class="btn" onclick="window.location = '';">Sign up</button>
|
||||||
|
</form>
|
||||||
|
<a class="text-white text-center" href="">Forgot password?</a>
|
||||||
|
</main>
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Home - Logud
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.logout') }}" class="text-white">Logud</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Vis
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.index') }}" class="text-white">Vis Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
show.blade.php
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Opret
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.create') }}" class="text-white">Opret Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
Personal blev (ikke) oprettet.
|
||||||
|
@endsection
|
|
@ -0,0 +1,14 @@
|
||||||
|
@extends("admin.layout.base")
|
||||||
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Personal - Rediger
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("path")
|
||||||
|
<a href="{{ route('staff.edit') }}" class="text-white">Rediger Personal</a> /
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
Din Personal blev (ikke) redigeret.
|
||||||
|
@endsection
|
|
@ -26,14 +26,7 @@
|
||||||
<td>{{ $user->email }}</td>
|
<td>{{ $user->email }}</td>
|
||||||
<td>{{ $user->phone }}</td>
|
<td>{{ $user->phone }}</td>
|
||||||
<td><a href="{{ route("users.edit", [ "user" => $user->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
<td><a href="{{ route("users.edit", [ "user" => $user->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
<td>
|
<td><a href="{{ route("users.destroy", [ "user" => $user ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
<form method="post" action="{{ route("users.destroy", [ "user" => $user ]) }}" class="w-100">
|
|
||||||
@csrf
|
|
||||||
@method("delete")
|
|
||||||
|
|
||||||
<button type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -14,28 +14,7 @@
|
||||||
<form method="post" action="{{ route("washing-machines.store") }}">
|
<form method="post" action="{{ route("washing-machines.store") }}">
|
||||||
@csrf
|
@csrf
|
||||||
<label for="name_first">Vaskemaskine Navn:</label>
|
<label for="name_first">Vaskemaskine Navn:</label>
|
||||||
<input type="text" name="name" id="name" max="60" required>
|
<input type="text" name="name" id="name" max="60" placeholder="Vaskemaskine nr. 1" required>
|
||||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{{-- <table class="tbl">--}}
|
|
||||||
{{-- <tr>--}}
|
|
||||||
{{-- <th>ID</th>--}}
|
|
||||||
{{-- <th>Fornavn</th>--}}
|
|
||||||
{{-- <th>Efternavn</th>--}}
|
|
||||||
{{-- <th>Email</th>--}}
|
|
||||||
{{-- <th>Tlf nr</th>--}}
|
|
||||||
{{-- <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>--}}
|
|
||||||
{{-- <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>--}}
|
|
||||||
{{-- </tr>--}}
|
|
||||||
{{-- <tr>--}}
|
|
||||||
{{-- <td>{ID}</td>--}}
|
|
||||||
{{-- <td>{Fornavn}</td>--}}
|
|
||||||
{{-- <td>{Efternavn}</td>--}}
|
|
||||||
{{-- <td>{Email}</td>--}}
|
|
||||||
{{-- <td>{TLF}</td>--}}
|
|
||||||
{{-- <td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>--}}
|
|
||||||
{{-- <td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>--}}
|
|
||||||
{{-- </tr>--}}
|
|
||||||
{{-- </table>--}}
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Opret
|
Vaske Reservationer - Opret
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Booking</a> /
|
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Fjern
|
Vaske Reservationer - Fjern
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="" class="text-white">Fjern Booking</a> /
|
<a href="" class="text-white">Fjern Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Rediger
|
Vaske Reservationer - Rediger
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('washing-reservations.edit', ['id' => $reservations->id]) }}" class="text-white">Rediger Booking</a> /
|
<a href="{{ route('washing-reservations.edit', ['id' => $reservations->id]) }}" class="text-white">Rediger Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Vis
|
Vaske Reservationer - Vis
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('washing-reservations.index') }}" class="text-white">Vis Booking</a> /
|
<a href="{{ route('washing-reservations.index') }}" class="text-white">Vis Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Opret
|
Vaske Reservationer - Opret
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Booking</a> /
|
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
Booking blev (ikke) oprettet.
|
Vaske Reservationer blev (ikke) oprettet.
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Booking - Rediger
|
Vaske Reservationer - Rediger
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('washing-reservations.edit') }}" class="text-white">Rediger Booking</a> /
|
<a href="{{ route('washing-reservations.edit') }}" class="text-white">Rediger Vaske Reservationer</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
Din booking blev (ikke) redigeret.
|
Din Vaske Reservationer blev (ikke) redigeret.
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -44,5 +44,8 @@
|
||||||
<h4 class="mt-0">Kollegieassistent</h4>
|
<h4 class="mt-0">Kollegieassistent</h4>
|
||||||
<span class="text-center sde-black-20 mt-1">+45 24 62 94 50</span>
|
<span class="text-center sde-black-20 mt-1">+45 24 62 94 50</span>
|
||||||
<a class="btn text-center btn-sde-blue mt-1" href="tel:+4524629450">Ring</a>
|
<a class="btn text-center btn-sde-blue mt-1" href="tel:+4524629450">Ring</a>
|
||||||
|
|
||||||
|
<span class="text-center sde-black-20 mt-1">Send feedback omkring hvem el. hvad som helst</span>
|
||||||
|
<a class="btn text-center btn-sde-blue mt-1" href="feedbacks">Giv Feedback</a>
|
||||||
</main>
|
</main>
|
||||||
@endsection
|
@endsection
|
|
@ -0,0 +1,19 @@
|
||||||
|
@extends("app.layout.base")
|
||||||
|
|
||||||
|
@section("title")
|
||||||
|
Feedback - Ris/Ros
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section("content")
|
||||||
|
<main class="h-100 text-center">
|
||||||
|
<form action="" method="post" required>
|
||||||
|
<span>Ris el. Ros?</span>
|
||||||
|
<select name="choose_suggestion" class="mb-2">
|
||||||
|
<option>Ros</option>
|
||||||
|
<option>Ris</option>
|
||||||
|
</select>
|
||||||
|
<textarea name="feedback_message" placeholder="Skriv Ris/Ros besked her" required></textarea>
|
||||||
|
<button class="btn btn-sde-blue mt-2" onclick="window.location = '';">Send Ris/Ros</button>
|
||||||
|
</form>
|
||||||
|
</main>
|
||||||
|
@endsection
|
|
@ -25,18 +25,6 @@
|
||||||
<h3 class="sde-blue bold text-center">Torsdag</h3>
|
<h3 class="sde-blue bold text-center">Torsdag</h3>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sodales pulvinar congue aenean suspendisse.</p>
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sodales pulvinar congue aenean suspendisse.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-100" id="fredag">
|
|
||||||
<h3 class="sde-blue bold text-center">Fredag</h3>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sodales pulvinar congue aenean suspendisse.</p>
|
|
||||||
</div>
|
|
||||||
<div class="w-100" id="lørdag">
|
|
||||||
<h3 class="sde-blue bold text-center">Lørdag</h3>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sodales pulvinar congue aenean suspendisse.</p>
|
|
||||||
</div>
|
|
||||||
<div class="w-100" id="søndag">
|
|
||||||
<h3 class="sde-blue bold text-center">Søndag</h3>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sodales pulvinar congue aenean suspendisse.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{----}}
|
{{----}}
|
||||||
|
|
||||||
{{--Index--}}
|
{{--Index--}}
|
||||||
{{--@extends("app.users.index")--}}
|
{{----}}@extends("app.users.index")
|
||||||
|
|
||||||
{{--Login--}}
|
{{--Login--}}
|
||||||
{{--@extends("app.users.login")--}}
|
{{--@extends("app.users.login")--}}
|
||||||
|
@ -21,11 +21,17 @@
|
||||||
{{--@extends("app.washing-reservations.index")--}}
|
{{--@extends("app.washing-reservations.index")--}}
|
||||||
|
|
||||||
{{--Menuplan--}}
|
{{--Menuplan--}}
|
||||||
{{----}}@extends("app.menuplans.index")
|
{{--@extends("app.menuplans.index")--}}
|
||||||
|
|
||||||
{{--Contact--}}
|
{{--Contact--}}
|
||||||
{{--@extends("app.contact.index")--}}
|
{{--@extends("app.contact.index")--}}
|
||||||
|
|
||||||
|
{{--Account--}}
|
||||||
|
{{--@extends("app.users.index")--}}
|
||||||
|
|
||||||
|
{{--Feedback--}}
|
||||||
|
{{--@extends("app.feedbacks.index")--}}
|
||||||
|
|
||||||
{{----}}
|
{{----}}
|
||||||
{{------Admin Panel
|
{{------Admin Panel
|
||||||
{{----}}
|
{{----}}
|
||||||
|
|
|
@ -31,6 +31,7 @@ Route::get("phones", "PhoneController@index")->name("phones.index");
|
||||||
Route::resource("contacts", "ContactController");
|
Route::resource("contacts", "ContactController");
|
||||||
Route::resource("menu-plans", "MenuPlanController");
|
Route::resource("menu-plans", "MenuPlanController");
|
||||||
Route::resource("users", "UserController");
|
Route::resource("users", "UserController");
|
||||||
|
Route::resource("staff", "StaffController");
|
||||||
Route::resource("events", "EventController");
|
Route::resource("events", "EventController");
|
||||||
Route::resource("washing-machines", "WashingMachineController");
|
Route::resource("washing-machines", "WashingMachineController");
|
||||||
Route::resource("washing-reservations", "WashingReservationController");
|
Route::resource("washing-reservations", "WashingReservationController");
|
||||||
|
|
Loading…
Reference in New Issue