root 4 years ago
parent
commit
745509339b
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      app/Http/Controllers/Api/CompoundResourceController.php

+ 10
- 0
app/Http/Controllers/Api/CompoundResourceController.php View File

"receipt" => '', "receipt" => '',
"modul" => '03', "modul" => '03',
"penguatkuasa" => '', "penguatkuasa" => '',
"cpn_created" => Carbon::now()->toDateTimeString(),
]; ];
$file = ConfidentialFile::create($fileData); $file = ConfidentialFile::create($fileData);
$compound->modul = '03'; $compound->modul = '03';
$compound->no_telefon = $request->tel; $compound->no_telefon = $request->tel;
$compound->no_akaun_lesen = $request->lesen; $compound->no_akaun_lesen = $request->lesen;
$compound->cpn_created = Carbon::now()->toDateTimeString();


}elseif($request->jenis == 'Pelbagai_JPB'){ }elseif($request->jenis == 'Pelbagai_JPB'){
$compound->modul = '03'; $compound->modul = '03';
$compound->no_telefon = $request->tel; $compound->no_telefon = $request->tel;
$compound->no_akaun_lesen = $request->lesen; $compound->no_akaun_lesen = $request->lesen;
$compound->cpn_created = Carbon::now()->toDateTimeString();


}elseif($request->jenis == 'Pelbagai_PA'){ }elseif($request->jenis == 'Pelbagai_PA'){
$compound->no_telefon = $request->tel; $compound->no_telefon = $request->tel;
$compound->no_akaun_lesen = $request->lesen; $compound->no_akaun_lesen = $request->lesen;
$compound->bil_haiwan = $request->lesen; $compound->bil_haiwan = $request->lesen;
$compound->cpn_created = Carbon::now()->toDateTimeString();


}elseif($request->jenis == 'Pelbagai_LESEN'){ }elseif($request->jenis == 'Pelbagai_LESEN'){
$compound->modul = '03'; $compound->modul = '03';
$compound->no_telefon = $request->tel; $compound->no_telefon = $request->tel;
$compound->no_akaun_lesen = $request->lesen; $compound->no_akaun_lesen = $request->lesen;
$compound->cpn_created = Carbon::now()->toDateTimeString();
} }


"receipt" => '', "receipt" => '',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '', "penguatkuasa" => '',
"notis_created" => Carbon::now()->toDateTimeString(),
]; ];
}elseif($request->jenis == 'Pelbagai_KT'){ }elseif($request->jenis == 'Pelbagai_KT'){
$compoundData = [ $compoundData = [
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"tindakan" => $request->tindakan, "tindakan" => $request->tindakan,
"tempoh" => $request->tempoh, "tempoh" => $request->tempoh,
"notis_created" => Carbon::now()->toDateTimeString(),
]; ];
}elseif($request->jenis == 'Pelbagai_JPB'){ }elseif($request->jenis == 'Pelbagai_JPB'){
$compoundData = [ $compoundData = [
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"tindakan" => $request->tindakan, "tindakan" => $request->tindakan,
"tempoh" => $request->tempoh, "tempoh" => $request->tempoh,
"notis_created" => Carbon::now()->toDateTimeString(),
]; ];
} }
elseif($request->jenis == 'Pelbagai_LESEN'){ elseif($request->jenis == 'Pelbagai_LESEN'){
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"notis_created" => Carbon::now()->toDateTimeString(),
]; ];
} }
elseif($request->jenis == 'Pelbagai_PA'){ elseif($request->jenis == 'Pelbagai_PA'){
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"bil_haiwan" => $request->bil_haiwan, "bil_haiwan" => $request->bil_haiwan,
"notis_created" => Carbon::now()->toDateTimeString(),
]; ];
} }



Loading…
Cancel
Save