Commit 08ff9850 by Triyah Fatmawati

Add contact dan substr nama VA

parent b0433d1a
......@@ -17,6 +17,7 @@
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use RealRashid\SweetAlert\Facades\Alert;
use Illuminate\Support\Str;
class RegistrasiController extends Controller
{
......@@ -204,9 +205,12 @@ public function store(Request $request) {
}
}
$namanya = str_replace(["'", ".", ",", "-"], '', $registrasi['nama']);
$nama = Str::substr($namanya, 0, 30);
$multipartData = [
'noid' => $registrasi['kode_registrasi'],
'nama' => $registrasi['nama'],
'nama' => $nama,
'tagihan' => $totalHarga
];
......@@ -383,5 +387,9 @@ public function checkRegistrasi(Request $request, $va)
return view('email.selesai_pembayaran', $data);
}
public function contact(){
return view('contact');
}
}
@extends('Layouts.app')
@section('title','Beranda')
@section('sidebar')
@parent
@endsection
@section('content')
<section class="section">
<div class="section-header">
<h1>Contact</h1>
</div>
<div class="section-body">
<div class="row mt-4 active" id="tab-semuapengajuan" data-tab-group="mygroup-tab">
<div class="col-12">
<div class="card">
<div class="card-body">
<table>
<tr>
<td><h6 style="color: black">Rindu Puspita Wibawa</h6></td>
<td><h6 style="color: black">:</h6></td>
<td><h6 style="color: black">+6281232721407 <b>(WhatsApp Only)</h6></b></td>
</tr>
</table>
<br>
<br>
<h6 style="color: red">Note : </h6>
<h6 style="color: rgb(37, 94, 218);">Jika menemui kendala ketika melakukan registrasi, silahkan menghubungi nomor kontak di atas.</h6>
</div>
</div>
</div>
</div>
</section>
@endsection
@section('footer')
@parent
@endsection
......@@ -26,6 +26,9 @@
<a class="nav-link" href="{{route('user.create')}}"><i class="fas fa-file-pen"></i><span>Registrasi</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{route('user.contact')}}"><i class="fas fa-address-book"></i><span>Contact Person</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url('/login')}}"><i class="fa fa-sign-in"></i><span>Login</span></a>
</li>
@endif
......
......@@ -50,3 +50,5 @@
});
Route::get('test/email', [RegistrasiController::class, 'testEmail']);
Route::get('check/regis/{va}', [RegistrasiController::class, 'checkRegistrasi']);
Route::get('/contact', [RegistrasiController::class,'contact'])->name('user.contact');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment