44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\AdminSettings;
|
|
|
|
use App\Exports\Ansuran\AnsuranExport;
|
|
use App\Http\Controllers\Controller;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\Http;
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
|
|
class BalanceSheetsController extends Controller
|
|
{
|
|
public function index(Request $request)
|
|
{
|
|
return view('imbangduga.index');
|
|
// $current = new Carbon();
|
|
|
|
// $getReportDate = function ($date_string) use ($current) {
|
|
// if ($date_string == null) {
|
|
// return $current->toDateString();
|
|
// }
|
|
|
|
// return $date_string;
|
|
// };
|
|
|
|
// $request->hostname = config('api.url');
|
|
|
|
// $data = Http::get($request->hostname . '/api/reports/ansuran', [
|
|
// 'startDate' => $getReportDate($request->startDate),
|
|
// 'endDate' => $getReportDate($request->endDate),
|
|
// ])->json();
|
|
|
|
// $summary_ansuran_by_cawangan = $data['summary_ansuran_by_cawangan'];
|
|
// $summary_ansuran = $data['summary_ansuran'];
|
|
|
|
// $startDate = $getReportDate($request->startDate);
|
|
// $endDate = $getReportDate($request->endDate);
|
|
|
|
// return view('reports.ansuran.index', compact('summary_ansuran_by_cawangan', 'summary_ansuran', 'startDate', 'endDate'));
|
|
}
|
|
}
|