public function getEditcost($id) { $imports = Import::find($id); $proformaInvoice = ProformaInvoice::where('import_id', '=', $id)->get(); $bankCost = BankCost::where('import_id', '=', $id)->get(); $cnfCost = CnfCost::where('import_id', '=', $id)->get(); $otherCost = OtherCost::where('import_id', '=', $id)->get(); $ttCharges = TTCharge::where('import_id', '=', $id)->get(); return view('Imports.editCost', compact('imports', 'ttCharges'))->with('importProformaInvoice', $proformaInvoice)->with('importBankCost', $bankCost)->with('importCnfCost', $cnfCost)->with('importOtherCost', $otherCost); }