Browse Source

add api dealer claim

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
3c61a24eed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Api/FormController.php

+ 1
- 1
app/Http/Controllers/Api/FormController.php View File

$end = $dateE->copy()->endOfDay(); $end = $dateE->copy()->endOfDay();


$result = array(); $result = array();
$data = DealerClaim::with('Subscriber','Staff')->whereBetween('created_at', array($start, $end))->get();
$data = DealerClaim::with('Subscriber','Staff')->whereBetween('submission_dt', array($start, $end))->get();


if(count($data) > 0) { if(count($data) > 0) {
foreach($data as $f) { foreach($data as $f) {

Loading…
Cancel
Save