backend-admin #3
@ -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,
|
||||
],
|
||||
];
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user