Skip to content

Commit

Permalink
small fix on sale page
Browse files Browse the repository at this point in the history
  • Loading branch information
Batin committed Dec 26, 2019
1 parent 674b92a commit 3e26ffe
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 60 deletions.
12 changes: 12 additions & 0 deletions public/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,18 @@ html, body {
padding-top: 20px;
}

.footer-fix{
height: 43vh;
}

.footer-fixe{
height: 62vh;
}

.footer-fixes{
height: 67vh;
}

.salesselect {
margin-left: 20px;
margin-bottom: 20px;
Expand Down
38 changes: 16 additions & 22 deletions resources/views/Sales/offer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,52 +18,46 @@
@extends('app')
@section('content')

<header>
<div>
<h2 class="offerlabel">Prijsopgave aanmaken</h2>
</div>
</header>

<div class="container footer-fixes">
<h2 class="offerlabel">Prijsopgave aanmaken</h2>
<form class="offerform" action="{{ route('offer.store') }}" method="POST">
@csrf
@csrf
<div>
<label class="saleslabel">Salesmedewerker:</label>
<label class="saleslabel">Salesmedewerker:</label>
</div>

<div>
<select name="sales_id">
@foreach(\App\User::select('name' ,'id')->where('role_id', '2')->get() as $name)
<option value="{{ $name->id }}">{{ $name->name }}</option>
@endforeach
</select>
</div>

<div>
<label class="customerlabel">Klant:</label>
</div>

<div>
<select name="customer_id">
@foreach(\App\User::select('name', 'id')->where('role_id', '5')->get() as $name)
<option value="{{ $name->id }}">{{ $name->name }}</option>
@endforeach
</select>
</div>
<div>

<label class="pricelabel">Prijs:</label>
</div>
<div>
<input class="priceinput" type="text" name="price">
</div>
<div>
<input class="priceinput form-control" type="text" name="price">


<label class="remarkslabel">Opmerkingen:</label>
</div>
<div>
<textarea class="remarkstextarea" name="remarks"></textarea>
</div>
<textarea class=" form-control" name="remarks"></textarea>

<div>
<input class="offerinput" type="submit" value="Verzenden">
<input class="offerinput btn btn-primary mt-3" type="submit" value="Verzenden">
</div>
</form>

<br>
</form>
</div>

@endsection

Expand Down
70 changes: 35 additions & 35 deletions resources/views/Sales/offermail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,43 @@
@extends('app')
@section('content')

<header>
<div>
<h2 class="offerlabel">Offertes mailen naar de klanten</h2>
</div>
</header>

<form class="offerform" action="{{ route('offermail.store') }}" method="POST">
@csrf
<div>
<label class="saleslabel"> De offertes die goedgekeurd zijn.</label>
</div>
<div>
<select name="quotation_id">
@foreach(\App\Quotation::select('id')->where('must_still_approve','1')->where('approved', '1')->get() as $quotation)
<div class="container footer-fixes">
<h2 class="offerlabel text-center">Offertes mailen naar de klanten</h2>

<form class="offerform" action="{{ route('offermail.store') }}" method="POST">
@csrf
<div>
<label class="saleslabel"> De offertes die goedgekeurd zijn.</label>
</div>
<div>
<select name="quotation_id">
@foreach(\App\Quotation::select('id')->where('must_still_approve','1')->where('approved', '1')->get() as $quotation)
<option value="{{ $quotation->id }}"> {{ $quotation->id }} </option>
@endforeach
</select>
</div>
<div>
<input class="offerinput" type="submit" value="Verzenden">
</div>
</form>
<form class="offerform" action="{{ route('offermail.store') }}" method="POST">
@csrf
<div>
<label class="saleslabel"> De offertes die afgekeurd zijn.</label>
</div>
<div>
<select name="quotation_id">
@foreach(\App\Quotation::select('id')->where('must_still_approve','1')->where('approved', '0')->get() as $quotation)
<option value="{{ $quotation->id }}"> {{ $quotation->id }} </option>
@endforeach
</select>
</div>
<div>
<input class="offerinput" type="submit" value="Verzenden">
</div>
</select>
</div>
<div>
<input class="offerinput" type="submit" value="Verzenden">
</div>
</form>
<form class="offerform" action="{{ route('offermail.store') }}" method="POST">
@csrf
<div>
<label class="saleslabel"> De offertes die afgekeurd zijn.</label>
</div>
<div>
<select name="quotation_id">
@foreach(\App\Quotation::select('id')->where('must_still_approve','1')->where('approved', '0')->get() as $quotation)
<option value="{{ $quotation->id }}"> {{ $quotation->id }} </option>
@endforeach
</select>
</div>
<div>
<input class="offerinput" type="submit" value="Verzenden">
</div>
</form>
</div>

@endsection

</body>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
</p>
</div>
</div>
</div>
</footer>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@section('content')
<br>
<div class="container">
<div class="container footer-fixe">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@section('content')
<br>
<div class="container">
<div class="container footer-fix">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
Expand Down

0 comments on commit 3e26ffe

Please sign in to comment.