update listing
This commit is contained in:
@@ -21,6 +21,7 @@ use Box\Spout\Writer\Common\Creator\WriterEntityFactory;
|
||||
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;
|
||||
use Box\Spout\Common\Entity\Style\CellAlignment;
|
||||
use Box\Spout\Common\Entity\Style\Color;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class ClaimController extends Controller
|
||||
{
|
||||
@@ -315,8 +316,8 @@ class ClaimController extends Controller
|
||||
// ->where('request_logs.status_final_log', '=', 'approved')
|
||||
->where('request_logs.deleted_at', '=', null)
|
||||
->when($start != 'all' && $end != 'all', function ($query) use ($start, $end) {
|
||||
$query->where('request_logs.submission_date', '>=', $start)
|
||||
->where('request_logs.submission_date', '<=', $end);
|
||||
$query->where('request_logs.submission_date', '>=',Carbon::parse($start)->subDay())
|
||||
->where('request_logs.submission_date', '<=',Carbon::parse($end)->addDay());
|
||||
})
|
||||
->select(
|
||||
DB::raw('1 AS no'),
|
||||
|
||||
Reference in New Issue
Block a user