new branch for seat selection

This commit is contained in:
merdiano 2019-11-02 18:42:13 +05:00
parent 885a1926ae
commit 459203bc7f
3 changed files with 113 additions and 1 deletions

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class SectionRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only allow updates if the user is logged in
return backpack_auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// 'name' => 'required|min:5|max:255'
];
}
/**
* Get the validation attributes that apply to the request.
*
* @return array
*/
public function attributes()
{
return [
//
];
}
/**
* Get the validation messages that apply to the request.
*
* @return array
*/
public function messages()
{
return [
//
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class VenueRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only allow updates if the user is logged in
return backpack_auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// 'name' => 'required|min:5|max:255'
];
}
/**
* Get the validation attributes that apply to the request.
*
* @return array
*/
public function attributes()
{
return [
//
];
}
/**
* Get the validation messages that apply to the request.
*
* @return array
*/
public function messages()
{
return [
//
];
}
}

View File

@ -44,7 +44,7 @@
@include('Bilettm.ViewEvent.Partials.Seats')
</div>
<div class="checked-seats" style="padding: 30px 0; text-align: center">
<h5 style="text-align: center; font-weight: bold;">You Have Selected <span>4</span> Standard Seats</h5>
<h5 style="text-align: center; font-weight: bold;">You Have Selected <span>4</span> Seats</h5>
<h5 style="text-align: center;">Your Seats:</h5>
<form action="{{route('postValidateTickets',['event_id'=>$event->id])}}" method="post">
@csrf