Tambahan dan perubahan table transaksi

This commit is contained in:
Muhammad Raihan Surya 2023-09-21 18:57:16 +07:00
parent ce8b355248
commit 5f01f0d124
2 changed files with 5 additions and 5 deletions

View File

@ -22,6 +22,7 @@ class UserTransactionController extends Controller
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*/ */
public function indexPembeli() public function indexPembeli()
{ {
return view('user.transaction.pembeli.index', [ return view('user.transaction.pembeli.index', [
@ -135,8 +136,7 @@ class UserTransactionController extends Controller
'email' => $pembeli, 'email' => $pembeli,
'phone' => $nohp_pembeli, 'phone' => $nohp_pembeli,
'address' => Auth::user()->alamat, 'address' => Auth::user()->alamat,
'city' => '', 'city' => Auth::user()->village->district->city->name,
'postal_code' => '12190',
'country_code' => 'IDN', 'country_code' => 'IDN',
], ],
], ],
@ -145,8 +145,8 @@ class UserTransactionController extends Controller
], ],
'expiry' => [ 'expiry' => [
'start_time' => $now->format('Y-m-d H:i:s P'), 'start_time' => $now->format('Y-m-d H:i:s P'),
'unit' => 'days', 'unit' => 'hours',
'duration' => 1, 'duration' => 24,
], ],
]; ];

View File

@ -48,7 +48,7 @@ class DatabaseSeeder extends Seeder
$now = Carbon::now()->tz('Asia/Jakarta'); $now = Carbon::now()->tz('Asia/Jakarta');
$bulan = $now->format('F'); $bulan = $now->format('F');
$tahun = $now->year; $tahun = $now->year;
Setting::factory()->create([ Setting::create([
'bulan' => $bulan, 'bulan' => $bulan,
'tahun' => $tahun, 'tahun' => $tahun,
'persentase' => 5, 'persentase' => 5,