Commit a0501b9c by hannan

mobile responsive page mandays & senarai project

parent 3a1de564
......@@ -6,7 +6,7 @@
<br>
<form class="ui form" action="{{route('timesheet::maintenance.savemandays')}}" method="POST">
{{csrf_field()}}
<table class="ui celled table">
<table class="ui celled structured table unstackable">
<input type="hidden" name="id" value="{{$id}}">
<thead>
<tr>
......
......@@ -7,7 +7,7 @@
<a href="{{ route('timesheet::maintenance.penambahanProject')}} " class="ui right floated small primary labeled icon button"><i class="plus icon"></i>Add New Project
</a>
<br>
<table class="ui celled padded table">
<table class="ui celled structured table unstackable">
<thead>
<tr>
<th>No</th>
......
......@@ -339,11 +339,18 @@ class MaintenanceController extends Controller
$pt->pt_project_type = $chargeable;
$pt->save();
$md = new Pmandays;
$md->fk_project = $request->pid;
$md->pm_roles = $request->role;
$md->updated_by = $request->userId;
$md->save();
$checkmd = Pmandays::where('fk_project', $request->pid)
->where('pm_roles', $request->role)
->first();
if($checkmd){
} else {
$md = new Pmandays;
$md->fk_project = $request->pid;
$md->pm_roles = $request->role;
$md->updated_by = $request->userId;
$md->save();
}
}
}
......
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