2017-11-30 08:47:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Common;
|
|
|
|
|
|
2019-11-16 07:21:14 +00:00
|
|
|
use App\Abstracts\Http\Controller;
|
2024-12-03 18:18:48 +00:00
|
|
|
use App\Traits\Import as ImportTrait;
|
2017-11-30 08:47:56 +00:00
|
|
|
|
|
|
|
|
class Import extends Controller
|
|
|
|
|
{
|
2024-12-03 18:18:48 +00:00
|
|
|
use ImportTrait;
|
|
|
|
|
|
2017-11-30 08:47:56 +00:00
|
|
|
/**
|
|
|
|
|
* Show the form for creating a new resource.
|
|
|
|
|
*
|
|
|
|
|
* @param $group
|
|
|
|
|
* @param $type
|
2021-05-19 06:12:01 +00:00
|
|
|
* @param $route
|
|
|
|
|
*
|
2017-11-30 08:47:56 +00:00
|
|
|
* @return Response
|
|
|
|
|
*/
|
2021-01-08 14:02:27 +00:00
|
|
|
public function create($group, $type, $route = null)
|
2017-11-30 08:47:56 +00:00
|
|
|
{
|
2024-12-03 18:18:48 +00:00
|
|
|
list($view, $data) = $this->getImportView($group, $type, $route);
|
2023-07-25 15:09:06 +00:00
|
|
|
|
2024-12-03 18:18:48 +00:00
|
|
|
return view($view, $data);
|
2017-11-30 08:47:56 +00:00
|
|
|
}
|
|
|
|
|
}
|