Skip to content

Commit

Permalink
De pagina verandert.
Browse files Browse the repository at this point in the history
  • Loading branch information
whytievanie committed Dec 19, 2019
1 parent 3e9cef9 commit 674b92a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/views/Finance/offercheck.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
</div>
<div>
<select class="offerselect" name="qutations">
@foreach(\App\Quotation::select('price', 'id', 'remarks')->get() as $name)
<option value="{{ $name->id }}">{{ $name->id }}, € {{ $name->price }} en {{ $name->remarks }}</option>
@foreach(\App\Quotation::select('price', 'id', 'remarks')->where('must_still_approve','0')->where('approved', '0')->get() as $quotation)
<option value="{{ $quotation->id }}">{{$quotation->id }}, € {{ $quotation->price }} en {{ $quotation->remarks }}</option>
@endforeach
</select>
</div>
Expand Down
24 changes: 19 additions & 5 deletions resources/views/Sales/offermail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,34 @@
<form class="offerform" action="{{ route('offermail.store') }}" method="POST">
@csrf
<div>
<label class="saleslabel">Offertes:</label>
<label class="saleslabel"> De offertes die goedgekeurd zijn.</label>
</div>
<div>
<select name="quotation_id">
@foreach(\App\Quotation::select('id')->get() as $name)
<option value="{{ $name->id }}">{{ $name->id }}</option>
@endforeach
@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>
@endsection

</body>
Expand Down

0 comments on commit 674b92a

Please sign in to comment.