Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/myhpcenter.fixmate.id/app/Http/Controllers/
Upload File :
Current File : /home/aplikasiposinfo/www/myhpcenter.fixmate.id/app/Http/Controllers/ReturDanGaransiController.php

<?php

namespace App\Http\Controllers;

use App\Models\Garansi;
use App\Models\Item;
use App\Models\KirimSupplier;
use App\Models\ReturPembelian;
use App\Models\ReturPenjualan;
use Illuminate\Http\Request;

class ReturDanGaransiController extends Controller
{
    public function index(){
        $garansis = Garansi::with('pengguna','penjualan','pembelian','service','detail_garansi')->orderBy('created_at','DESC')->get();
        $returPembelians = ReturPembelian::with('pengguna','pembelian','detail')->orderBy('created_at','DESC')->get();
        $returPenjualans = ReturPenjualan::with('penjualan','detail')->orderBy('created_at','DESC')->get();
        $kirimSuppliers = KirimSupplier::with('pengguna','supplier','detail_kirim_supplier')->orderBy('created_at','DESC')->get();
        return view('retur-dan-garansi.index',compact('garansis','returPembelians','returPenjualans','kirimSuppliers'));
    }

    
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]