<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Models\Category;
use App\Models\ManufacturingCompany;
use App\Models\Post;
use App\Models\Project;
use App\Models\Testimonial;
use Illuminate\Http\Request;

class ClientController extends Controller
{

    public function index()
    {

        $title = awtTrans('');

        $clients = ManufacturingCompany::orderBy('id', 'desc')->get();
        return view('web.clients.index', compact('clients' , 'title'));
    }

    public function show($slug)
    {

        $title = 'Suppliers';

        $supplier = ManufacturingCompany::findBySlugOrFail($slug);
        $title_model = 'About Company';

        return view('web.suppliers.show', compact('supplier' , 'title' , 'title_model'));
    }
}
