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

View File

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