fixes
parent
289ed0708a
commit
79750d1f13
|
|
@ -45,6 +45,6 @@ class CreateContractsTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('sell_contracts');
|
Schema::dropIfExists('contracts');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,22 @@ class DatabaseSeeder extends Seeder
|
||||||
Brand::truncate();
|
Brand::truncate();
|
||||||
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
||||||
|
|
||||||
$user = User::factory()->create([
|
User::factory()->create([
|
||||||
'name' => 'Nadim Salloum',
|
'name' => 'Nadim Salloum',
|
||||||
'email' => 'hello@salloum.ch',
|
'email' => env('USER_1_EMAIL'),
|
||||||
'password' => bcrypt('abc123'),
|
'password' => bcrypt(env('USER_1_PW')),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$team = Team::factory()->create([
|
User::factory()->create([
|
||||||
'name' => 'Your SwissCar GmbH',
|
'name' => 'Mohamad Salloum',
|
||||||
'user_id' => $user->id,
|
'email' => env('USER_2_EMAIL'),
|
||||||
'personal_team' => false,
|
'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) {
|
foreach ($this->getBrands() as $brandItem) {
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ MwSt-Nr: CHE-226.272.050
|
||||||
@endif
|
@endif
|
||||||
<tr><td> </td></tr>
|
<tr><td> </td></tr>
|
||||||
</table>
|
</table>
|
||||||
<h3>Fahrzeug</h3>
|
<h4>Fahrzeug</h4>
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="20%">Marke & Modell</td>
|
<td width="20%">Marke & Modell</td>
|
||||||
|
|
@ -213,9 +213,9 @@ Mündliche Vereinbarungen sind ungültig.
|
||||||
<td>Käufer:</td>
|
<td>Käufer:</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br><br><br><br>
|
<br><br>
|
||||||
@if ($contract->payments())
|
@if (count($contract->payments))
|
||||||
<h3>Quittung</h3>
|
<h4>Quittung</h4>
|
||||||
<table width="100%" style="padding-top: 5px; border-top: 1px solid black;">
|
<table width="100%" style="padding-top: 5px; border-top: 1px solid black;">
|
||||||
@foreach($contract->payments as $payment)
|
@foreach($contract->payments as $payment)
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue