shift-build-2464
Nadim Salloum 2021-07-09 22:16:16 +03:00
parent 289ed0708a
commit 79750d1f13
3 changed files with 18 additions and 12 deletions

View File

@ -45,6 +45,6 @@ class CreateContractsTable extends Migration
*/
public function down()
{
Schema::dropIfExists('sell_contracts');
Schema::dropIfExists('contracts');
}
}

View File

@ -34,16 +34,22 @@ class DatabaseSeeder extends Seeder
Brand::truncate();
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
$user = User::factory()->create([
User::factory()->create([
'name' => 'Nadim Salloum',
'email' => 'hello@salloum.ch',
'password' => bcrypt('abc123'),
'email' => env('USER_1_EMAIL'),
'password' => bcrypt(env('USER_1_PW')),
]);
$team = Team::factory()->create([
'name' => 'Your SwissCar GmbH',
'user_id' => $user->id,
'personal_team' => false,
User::factory()->create([
'name' => 'Mohamad Salloum',
'email' => env('USER_2_EMAIL'),
'password' => bcrypt(env('USER_2_PW')),
]);
User::factory()->create([
'name' => 'Nadim Salloum',
'email' => env('USER_3_EMAIL'),
'password' => bcrypt(env('USER_3_PW')),
]);
foreach ($this->getBrands() as $brandItem) {

View File

@ -118,7 +118,7 @@ MwSt-Nr: CHE-226.272.050
@endif
<tr><td>&nbsp;</td></tr>
</table>
<h3>Fahrzeug</h3>
<h4>Fahrzeug</h4>
<table width="100%">
<tr>
<td width="20%">Marke & Modell</td>
@ -213,9 +213,9 @@ Mündliche Vereinbarungen sind ungültig.
<td>Käufer:</td>
</tr>
</table>
<br><br><br><br>
@if ($contract->payments())
<h3>Quittung</h3>
<br><br>
@if (count($contract->payments))
<h4>Quittung</h4>
<table width="100%" style="padding-top: 5px; border-top: 1px solid black;">
@foreach($contract->payments as $payment)
<tr>