<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/21
 * Time: 15:01
 */

namespace App\Http\Controllers\Web\Hardware\Pad;

use App\Http\Controllers\Web\WebBaseController;
use Illuminate\Http\Request;
use App\Repositories\Jobfair\JobfairPersonalJobsApplyRepository;
class PadYuyueController extends WebBaseController
{
    protected $jobfairPersonalJobsApplyRepository;
    /**
     * LoginController constructor.
     * @param JobfairPersonalJobsApplyRepository $jobfairPersonalJobsApplyRepository
     */
    public function __construct(JobfairPersonalJobsApplyRepository $jobfairPersonalJobsApplyRepository) {
        $this->jobfairPersonalJobsApplyRepository = $jobfairPersonalJobsApplyRepository;
    }

    public function list()
    {
        $user = auth('web-company')->user();
        $where = [
            'company_id'=>$user->id,
            'jobfair_id'=>session('floorplan_stands.jobfair_id')
        ];
        $result = $this->jobfairPersonalJobsApplyRepository->padApplyJobs($where,10);
        return view('app.hardware.pad.yuyue_list',['result' => $result]);
    }
}