AI Review Center
Commit Review Workspace ?
Select a commit on the left to inspect quality, security, business value, findings, and suggested code changes.
Project AI Score
?
67%
Quality Avg
?
72%
Security Avg
?
54%
Reviews
?
37
Review Result ?
jattin01/army · 3c752bb3
The commit adds standard configuration and metadata files (.editorconfig, .gitattributes, .gitignore, .env.example, and README.md), which help improve maintainability and team consistency. The app/Console/Kernel.php is added as a boilerplate with a placeholder for commands and scheduling. However, no new business logic or features are introduced, and there is minimal risk of bugs. The security score is low because though environment and ignore files are added, no security-enhancing measures or secrets management improvements are present.
Quality
?
80%
Security
?
20%
Business Value
?
30%
Maintainability
?
88%
Issues & Suggested Fixes
?
1AI detects the issue
2Shows file, line, or evidence
3Suggests the fix to apply
App Key Is Empty
Where
.env.example:3
Issue / Evidence
APP_KEY is empty
Suggested Fix
consider providing clear guidance to set a secure application key
Issue
Where
commit message
Issue / Evidence
issue
Suggested Fix
write a more descriptive commit message to improve traceability and code review
Missing A Summary Of This Commit's Added F...
Where
README.md:1
Issue / Evidence
missing a summary of this commit's added files and purpose
Suggested Fix
add summary to assist team understanding
Commented Command
Where
app/Console/Kernel.php:15
Issue / Evidence
commented command
Suggested Fix
add at least one scheduled command or remove placeholder to reduce confusion
Code Change Preview · .editorconfig
?
Removed / Before Commit
Added / After Commit
+ root = true + + [*] + charset = utf-8 + end_of_line = lf + indent_size = 4 + indent_style = space + insert_final_newline = true + trim_trailing_whitespace = true + + [*.md] + trim_trailing_whitespace = false + + [*.{yml,yaml}] + indent_size = 2 + + [docker-compose.yml] + indent_size = 4
Removed / Before Commit
Added / After Commit
+ APP_NAME=Laravel + APP_ENV=local + APP_KEY= + APP_DEBUG=true + APP_URL=http://localhost + + LOG_CHANNEL=stack + LOG_DEPRECATIONS_CHANNEL=null + LOG_LEVEL=debug + + DB_CONNECTION=mysql + DB_HOST=127.0.0.1 + DB_PORT=3306 + DB_DATABASE=laravel + DB_USERNAME=root + DB_PASSWORD= + + BROADCAST_DRIVER=log
Removed / Before Commit
Added / After Commit
+ * text=auto eol=lf + + *.blade.php diff=html + *.css diff=css + *.html diff=html + *.md diff=markdown + *.php diff=php + + /.github export-ignore + CHANGELOG.md export-ignore + .styleci.yml export-ignore
Removed / Before Commit
Added / After Commit
+ /.phpunit.cache + /node_modules + /public/build + /public/hot + /public/storage + /storage/*.key + /vendor + /public/* + /public + .env + .env.backup + .env.production + .phpunit.result.cache + Homestead.json + Homestead.yaml + auth.json + npm-debug.log + yarn-error.log
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Console; + + use Illuminate\Console\Scheduling\Schedule; + use Illuminate\Foundation\Console\Kernel as ConsoleKernel; + + class Kernel extends ConsoleKernel + { + /** + * Define the application's command schedule. + */ + protected function schedule(Schedule $schedule): void + { + // $schedule->command('inspire')->hourly(); + } + + /**
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Exceptions; + + use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; + use Throwable; + + class Handler extends ExceptionHandler + { + /** + * The list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array<int, string> + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers\Auth; + + use App\Http\Controllers\Controller; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Auth; + use App\Models\User; + use App\Models\Menu; + use DB; + + class LoginController extends Controller + { + public function showLoginForm() + { + return view('auth.login'); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers\Auth; + + use App\Http\Controllers\Controller; + use App\Models\User; + use App\Models\Role; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Hash; + use App\Models\Vertical; + use App\Models\Group; + + class RegisterController extends Controller + { + public function showRegisterForm() + { + $verticals = Vertical::all(); // Your verticals table + $groups = Group::all();
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/BdeController.php + + namespace App\Http\Controllers; + + use App\Models\Bde; + use Illuminate\Http\Request; + + class BdeController extends Controller + { + public function index() + { + $bdes = Bde::all(); + return view('bdes.index', compact('bdes')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Co; + use Illuminate\Http\Request; + + class CoController extends Controller + { + public function index() + { + $cos = Co::all(); + return view('cos.index', compact('cos')); + } + + public function store(Request $request) + { + Co::create($request->only('name'));
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Foundation\Auth\Access\AuthorizesRequests; + use Illuminate\Foundation\Validation\ValidatesRequests; + use Illuminate\Routing\Controller as BaseController; + + class Controller extends BaseController + { + use AuthorizesRequests, ValidatesRequests; + }
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/CorpController.php + + namespace App\Http\Controllers; + + use App\Models\Corp; + use Illuminate\Http\Request; + + class CorpController extends Controller + { + public function index() + { + $corps = Corp::all(); + return view('corps.index', compact('corps')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\Crc; + use App\Models\CrcItem; + use App\Models\Part; + use App\Models\Unit; + use App\Models\MasterCommand; + + class CrcController extends Controller + { + // Show all CRC entries + public function index() + { + $crcs = Crc::with('unit', 'command')->latest()->get(); + return view('crc.index', compact('crcs'));
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Http\Controllers; + + use App\Models\Crc; + use App\Models\CrcItem; + use App\Models\CrcIvMaster; + use App\Models\CrcRepair; + use App\Models\CrcIvItem; + use Illuminate\Http\Request; + use DB; + + class CrcIvController extends Controller + { + /** + * Show IV generation form for a specific CRC. + */ + public function generate(Request $request) + {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\CrcIvMaster; + use App\Models\CrcRepair; + + class CrcIvRepairController extends Controller + { + public function index() + { + // All job_nos with WCN generated but IV not filled + $jobNos = CrcRepair::whereNotNull('wcn_serial_no') + ->whereNull('entry_iv_no') + ->with('master') + ->get() + ->pluck('master.job_no')
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Http\Controllers; + use App\Models\CrcRepair; + use Illuminate\Http\Request; + use Illuminate\Support\Str; + + class CrcRepairController extends Controller + { + public function index(Request $request) + { + // Get only job_nos that still have at least one row with wcn fields null + $pendingRepairs = CrcRepair::with('master') + ->whereNull('wcn_no') + ->orWhereNull('wcn_serial_no') + ->get(); + + // Extract unique job_nos that are still pending WCN initiation + $pendingJobNos = $pendingRepairs->map(function ($repair) {
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/DivController.php + + namespace App\Http\Controllers; + + use App\Models\Div; + use Illuminate\Http\Request; + + class DivController extends Controller + { + public function index() + { + $divs = Div::all(); + return view('divs.index', compact('divs')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Equipment; + use App\Models\SubGroup; + use App\Models\SubAssyEquipment; + use Illuminate\Http\Request; + + class EquipmentController extends Controller + { + public function index() + { + $equipments = Equipment::with('subgroup.group')->get(); + $subgroups = SubGroup::with('group')->get(); + return view('equipment.index', compact('equipments', 'subgroups')); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\EquipmentRepair; + use App\Models\WorkEquipment; + use Illuminate\Http\Request; + use App\Models\QCCheck; + use App\Models\QaInspectionInitate; + use DB; + + class EquipmentRepairController extends Controller + { + public function index(Request $request) + { + // ⛏ Main repair records: only those not yet initiated to QA + $repairs = QCCheck::with(['workOrder', 'workEquipment', 'vir']) + ->whereNotExists(function ($query) {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\GatePass; + use App\Models\GatePassDetail; + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use App\Models\WorkUnit; + use Illuminate\Http\Request; + + class GatePassController extends Controller + { + public function index(Request $request) + { + + $wcnNumber = $request->wcn_number; + $unitId = $request->unit_id;
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Group; + use Illuminate\Http\Request; + use App\Models\Vertical; + + class GroupController extends Controller + { + public function index() + { + $groups = Group::all(); + $verticals = Vertical::where('status', 1)->get(); + + return view('groups.index', compact('groups', 'verticals')); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\MasterCommand; + use Illuminate\Http\Request; + + class MasterCommandController extends Controller + { + public function index() + { + $commands = MasterCommand::latest()->get(); + return view('master_command.index', compact('commands')); + } + + public function store(Request $request) + { + $request->validate([
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Validator; + use Illuminate\Support\Facades\Storage; + use App\Models\MasterLogo; + + class MasterLogoController extends Controller + { + public function index() + { + $logo = MasterLogo::first(); // Only one record + return view('master_logo.index', compact('logo')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\McoScale; + use App\Models\Group; + use App\Models\RepairClass; + use App\Models\Equipment; + use App\Models\SubGroup; + use App\Models\McoScaleDesign; + use App\Models\McoScaleDesignColumn; + use App\Models\McoScaleData; + use Illuminate\Support\Facades\DB; + use Illuminate\Support\Facades\Schema; + use Illuminate\Database\Schema\Blueprint; + + class McoUserScaleController extends Controller + {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Menu; + use App\Models\Role; + use Illuminate\Http\Request; + use App\Models\RoleMenuPermission; + + class MenuController extends Controller + { + public function index() + { + $menusdata = Menu::with('parent', 'roles', 'children')->get(); + return view('menus.index', compact('menusdata')); + } + + public function create()
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use App\Models\MR; + use App\Models\MrWorkEquipment; + use App\Models\QaInspectionInitate; + use Illuminate\Http\Request; + use Carbon\Carbon; + use Auth; + + class MRProcessController extends Controller + { + public function index(Request $request) + { + $selectedJob = $request->get('job_no');
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Menu; + use App\Models\Role; + use App\Models\RoleMenuPermission; + use Illuminate\Http\Request; + + class PermissionController extends Controller + { + public function view($id) + { + $role = Role::findOrFail($id); + + // Get all role-menu-permission mappings + $permissions = RoleMenuPermission::where('role_id', $id) + ->get()
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/ProductionYearController.php + + namespace App\Http\Controllers; + + use App\Models\ProductionYear; + use Illuminate\Http\Request; + + + class ProductionYearController extends Controller + { + public function index() + { + $productionYears = ProductionYear::all(); + return view('production-year.index', compact('productionYears')); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\QADecision; + use App\Models\WorkEquipment; + use App\Models\WorkOrder; + use App\Models\Vir; + use Auth; + + class QADecisionController extends Controller + { + public function index(Request $request) + { + $query = WorkEquipment::with(['workOrder', 'vir', 'qaDecision']) + ->whereHas('vir', function ($q) { + $q->whereNotNull('status');
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\QAInspection; + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use App\Models\EquipmentRepair; + use App\Models\QaInspectionInitate; + use DB; + use Illuminate\Support\Facades\Auth; + + class QAInspectionController extends Controller + { + // ✅ 1. Show all inspections with basic filters + public function index(Request $request) + {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\QCCheck; + use App\Models\WorkEquipment; + use App\Models\WorkOrder; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Auth; + + class QCCheckController extends Controller + { + public function index(Request $request) + { + $equipments = WorkEquipment::with(['workOrder', 'vir', 'qcCheck']) + ->whereHas('vir', fn ($q) => $q->whereNotNull('status')) + ->whereHas('workOrder', fn ($q) => $q->whereNotNull('job_no')) + ->whereDoesntHave('qcCheck')
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\QAInspection; + use App\Models\QCInspection; + use DB; + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use Illuminate\Support\Facades\Auth; + + class QCInspectionController extends Controller + { + public function index(Request $request) + { + // Step 1: Only those QA inspections (passed) which are not yet in QC + $query = QAInspection::with(['workOrder', 'workEquipment'])
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/RepairClassController.php + + namespace App\Http\Controllers; + + use App\Models\RepairClass; + use Illuminate\Http\Request; + + class RepairClassController extends Controller + { + public function index() + { + $repairClasses = RepairClass::all(); + return view('repair_class.index', compact('repairClasses')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\Role; + use App\Models\Group; + + class RoleController extends Controller + { + // Show all roles + public function index() + { + $roles = Role::with('children')->get(); + return view('roles.index', compact('roles')); + } + + // Show form to create a new role
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\SubAssyEquipment; + use App\Models\Equipment; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Auth; + + class SubAssyEquipmentController extends Controller + { + public function index() + { + $subAssys = SubAssyEquipment::with('equipment')->get(); + $equipments = Equipment::all(); + return view('sub-assy.index', compact('subAssys', 'equipments')); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\SubGroup; + use App\Models\Group; + use Illuminate\Http\Request; + + class SubGroupController extends Controller + { + public function index() + { + $subGroups = SubGroup::with('group')->get(); + $groups = Group::where('status', 1)->get(); + + return view('sub-groups.index', compact('subGroups', 'groups')); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/UnitController.php + + namespace App\Http\Controllers; + + use App\Models\Unit; + use Illuminate\Http\Request; + + class UnitController extends Controller + { + public function index() + { + $units = Unit::orderBy('id', 'desc')->get(); + return view('units.index', compact('units')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + + use App\Http\Controllers\Controller; + use App\Models\User; + use App\Models\Role; + use App\Models\Vertical; + use App\Models\Group; + use Illuminate\Support\Facades\Hash; + use Illuminate\Support\Facades\Auth; + + class UserController extends Controller + { + public function index() + {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\Vertical; + use Illuminate\Http\Request; + + class VerticalController extends Controller + { + public function index() + { + $verticals = Vertical::orderBy('created_at', 'desc')->get(); + return view('verticals.index', compact('verticals')); + } + + public function store(Request $request) + { + $request->validate([
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use App\Models\VIR; + use App\Models\MasterLogo; + use App\Models\Group; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\DB; + + class VIRController extends Controller + { + public function index(Request $request) + { + // Base query for WorkEquipment + $query = WorkEquipment::with([
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use App\Models\WorkOrder; + use App\Models\WorkEquipment; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Validator; + + class WcnController extends Controller + { + public function index(Request $request) + { + // 🔹 Always available + $jobNumbers = WorkOrder::whereHas('equipments', function ($q) { + $q->whereHas('qcInspection') + ->whereNull('wcn_number'); + })->pluck('job_no')->unique()->values();
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Http/Controllers/WkspController.php + + namespace App\Http\Controllers; + + use App\Models\Wksp; + use Illuminate\Http\Request; + + class WkspController extends Controller + { + public function index() + { + $wksps = Wksp::all(); + return view('wksps.index', compact('wksps')); + } + + public function store(Request $request)
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Controllers; + + use Illuminate\Http\Request; + use App\Models\WorkOrder; + use App\Models\WorkUnit; + use App\Models\MasterCommand; + use App\Models\WorkUser; + use App\Models\MasterLogo; + use App\Models\Unit; + use App\Models\Wksp; + use App\Models\Bde; + use App\Models\Div; + use App\Models\Corp; + use App\Models\Co; + use App\Models\WorkEquipment; + use App\Models\MrWorkEquipment;
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http; + + use Illuminate\Foundation\Http\Kernel as HttpKernel; + + class Kernel extends HttpKernel + { + /** + * The application's global HTTP middleware stack. + * + * These middleware are run during every request to your application. + * + * @var array<int, class-string|string> + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class,
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Auth\Middleware\Authenticate as Middleware; + use Illuminate\Http\Request; + + class Authenticate extends Middleware + { + /** + * Get the path the user should be redirected to when they are not authenticated. + */ + protected function redirectTo(Request $request): ?string + { + return $request->expectsJson() ? null : route('login'); + } + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Closure; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Auth; + use App\Models\Menu; + + class CheckPermission + { + public function handle(Request $request, Closure $next, $menuSlug, $permission) + { + $user = Auth::user(); + + if (!$user) { + return redirect()->route('login'); + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; + + class EncryptCookies extends Middleware + { + /** + * The names of the cookies that should not be encrypted. + * + * @var array<int, string> + */ + protected $except = [ + // + ]; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware; + + class PreventRequestsDuringMaintenance extends Middleware + { + /** + * The URIs that should be reachable while maintenance mode is enabled. + * + * @var array<int, string> + */ + protected $except = [ + // + ]; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use App\Providers\RouteServiceProvider; + use Closure; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Auth; + use Symfony\Component\HttpFoundation\Response; + + class RedirectIfAuthenticated + { + /** + * Handle an incoming request. + * + * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next + */ + public function handle(Request $request, Closure $next, string ...$guards): Response
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; + + class TrimStrings extends Middleware + { + /** + * The names of the attributes that should not be trimmed. + * + * @var array<int, string> + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ];
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Http\Middleware\TrustHosts as Middleware; + + class TrustHosts extends Middleware + { + /** + * Get the host patterns that should be trusted. + * + * @return array<int, string|null> + */ + public function hosts(): array + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ];
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Http\Middleware\TrustProxies as Middleware; + use Illuminate\Http\Request; + + class TrustProxies extends Middleware + { + /** + * The trusted proxies for this application. + * + * @var array<int, string>|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies.
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Routing\Middleware\ValidateSignature as Middleware; + + class ValidateSignature extends Middleware + { + /** + * The names of the query string parameters that should be ignored. + * + * @var array<int, string> + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Http\Middleware; + + use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; + + class VerifyCsrfToken extends Middleware + { + /** + * The URIs that should be excluded from CSRF verification. + * + * @var array<int, string> + */ + protected $except = [ + // + ]; + }
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Models/Bde.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Bde extends Model + { + use HasFactory; + + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Co extends Model + { + use HasFactory; + + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Models/Corp.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Corp extends Model + { + use HasFactory; + + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\Factories\HasFactory; + + class Crc extends Model + { + use HasFactory; + + protected $fillable = [ + 'unit_iv_no', + 'iv_date', + 'unit_id', + 'command_id', + 'crc_no', + 'crc_date',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\Factories\HasFactory; + + class CrcItem extends Model + { + use HasFactory; + + protected $fillable = [ + 'crc_id', + 'part_no', + 'equipment_name', + 'nomenclature', + 'qty', + 'hours',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class CrcIvItem extends Model + { + protected $fillable = [ + 'crc_iv_master_id', + 'part_no', + 'equipment', + 'nomenclature', + 'iv_no', + 'hours', + ]; + + public function ivMaster()
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class CrcIvMaster extends Model + { + protected $fillable = ['crc_id', 'job_no']; + + public function items() + { + return $this->hasMany(CrcIvItem::class); + } + + public function repairs() + { + return $this->hasMany(CrcRepair::class, 'crc_iv_master_id');
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class CrcRepair extends Model + { + protected $fillable = [ + 'crc_iv_master_id', + 'part_no', + 'equipment_name', + 'nomenclature', + 'hours', + 'entry_iv_no', + 'issued_by_crc', + ]; +
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Models/Div.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Div extends Model + { + use HasFactory; + + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class Equipment extends Model + { + protected $table = 'equipments'; + + protected $fillable = ['name', 'code', 'subgroup_id']; + + public function subgroup() + { + return $this->belongsTo(SubGroup::class); + } + + }
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class EquipmentRepair extends Model + { + protected $fillable = [ + 'work_order_id', + 'work_equipment_id', + 'vir_id', + 'pdc_date', + 'fault', + 'repair_class', + 'repair_progress_remark', + 'repair_progress_date', + 'status', + 'initiate_to_qa'
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\Factories\HasFactory; + + class GatePass extends Model + { + use HasFactory; + + protected $fillable = [ + 'work_order_id', + 'army_no', + 'rank', + 'name', + 'contact_no', + 'mode_of_transport',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\Factories\HasFactory; + + class GatePassDetail extends Model + { + use HasFactory; + + protected $fillable = [ + 'gate_pass_id', + 'work_equipment_id', + 'mr_id' + ]; + + public function gatePass()
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Group extends Model + { + use HasFactory; + + protected $fillable = ['name', 'status', 'vertical_id']; + + public function vertical() + { + return $this->belongsTo(Vertical::class); + } + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class MasterCommand extends Model + { + use HasFactory; + + protected $fillable = ['name', 'status']; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class MasterLogo extends Model + { + protected $fillable = ['title', 'logo_path', 'favicon_path']; + }
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class McoScale extends Model + { + protected $fillable = [ + 'group_id', + 'scale_name', + 'repair_class_id', + 'scale_ref_auth', + 'no_of_items', + ]; + + public function group() + { + return $this->belongsTo(Group::class, 'group_id');
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class McoScaleData extends Model + { + protected $fillable = [ + 'mco_scale_design_id', + 'data', + ]; + + protected $casts = [ + 'data' => 'array', // auto-decodes JSON + ]; + + public function design() + {
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class McoScaleDesign extends Model + { + protected $fillable = [ + 'mco_scale_id', + 'table_name', + 'published_by', + 'main_equipment_id', + 'qty_off_limit', + ]; + + public function mainEquipment() + { + return $this->belongsTo(Equipment::class, 'main_equipment_id');
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class McoScaleDesignColumn extends Model + { + protected $fillable = [ + 'mco_scale_design_id', + 'column_name', + 'type', + 'length', + ]; + + public function design() + { + return $this->belongsTo(McoScaleDesign::class, 'mco_scale_design_id'); + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Menu extends Model + { + use HasFactory; + protected $fillable = ['name', 'icon', 'route','parent_id']; + + public function roles() + { + return $this->belongsToMany(Role::class); + } + + public function parent()
Removed / Before Commit
Added / After Commit
+ <?php + // app/Models/MRManufacturing.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class MR extends Model + { + Protected $table = 'mandr'; + + protected $fillable = ['equipment_id', 'quantity', 'date','qa_initiated']; + + public function mrWorkEquipment() + { + return $this->belongsTo(MrWorkEquipment::class, 'equipment_id'); + } + public function qaInspectionInitiate()
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class MrWorkEquipment extends Model + { + use HasFactory; + protected $table = 'mr_work_equipments'; + + protected $fillable = [ + 'work_order_id', + 'unit_wo_no', + 'unit_wo_date', + 'repair_class', + 'group_id',
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\Factories\HasFactory; + + class Part extends Model + { + use HasFactory; + + protected $fillable = [ + 'part_no', + 'equipment_id', + 'nomenclature', + 'hours', + ]; + + public function equipment()
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class ProductionYear extends Model + { + use HasFactory; + protected $fillable = ['financial_year', 'is_active']; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class QADecision extends Model + { + use SoftDeletes; + + protected $table='qa_decisions'; + + protected $fillable = [ + 'work_order_id', + 'work_equipment_id', + 'vir_id', + 'qa_status',
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use App\Models\QCInspection; + use App\Models\EquipmentRepair; + + class QAInspection extends Model + { + protected $table = 'qa_inspections'; + + protected $fillable = [ + 'work_order_id', + 'work_equipment_id', + 'vir_id', + 'status', + 'qa_inspection_remark', + 'qa_inspection_date',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class QaInspectionInitate extends Model + { + use HasFactory; + + protected $table = 'qa_inspection_initate'; + + protected $fillable = [ + 'work_order_id', + 'work_equipment_id', + 'vir_id', + 'mr_id',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class QCCheck extends Model + { + use SoftDeletes; + + protected $table='qc_checks'; + + protected $fillable = [ + 'qc_control_no', + 'work_order_id', + 'work_equipment_id', + 'vir_id',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class QCInspection extends Model + { + use SoftDeletes; + + protected $table = 'qc_inspections'; + + protected $fillable = [ + 'work_order_id', + 'work_equipment_id', + 'vir_id', + 'status',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class RepairClass extends Model + { + protected $fillable = ['name']; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + use Illuminate\Database\Eloquent\Model; + + class Role extends Model + { + protected $fillable = ['name','group_id']; + public function menus() + { + return $this->belongsToMany(Menu::class, 'menu_role', 'role_id', 'menu_id'); + } + public function parents() + { + return $this->belongsToMany(Role::class, 'role_parents', 'role_id', 'parent_id'); + } + public function group() + {
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class RoleMenuPermission extends Model + { + protected $fillable = ['role_id', 'menu_id', 'permission']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class SubAssyEquipment extends Model + { + use SoftDeletes; + + protected $table = 'sub_assy_equipments'; + + protected $fillable = [ + 'equipment_id', + 'sub_equipment_name', + 'time_allot', + 'sub_assy_type',
Removed / Before Commit
Added / After Commit
+ <?php + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class SubGroup extends Model + { + use HasFactory; + + protected $fillable = ['name', 'group_id', 'status']; + + public function group() + { + return $this->belongsTo(Group::class); + } + + }
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Models/Unit.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Model; + + class Unit extends Model + { + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + // use Illuminate\Contracts\Auth\MustVerifyEmail; + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Foundation\Auth\User as Authenticatable; + use Illuminate\Notifications\Notifiable; + use Laravel\Sanctum\HasApiTokens; + use App\Models\Vertical; + use App\Models\Group; + + + class User extends Authenticatable + { + use HasApiTokens, HasFactory, Notifiable; + + /**
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Vertical extends Model + { + use HasFactory; + + protected $fillable = ['name', 'status']; + + public function groups() + { + return $this->hasMany(Group::class); + } + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class VIR extends Model + { + use HasFactory; + + protected $table = 'virs'; + + protected $fillable = [ + 'work_order_id', + 'vir_remarks', + 'rejection_reason', + 'vir_date',
Removed / Before Commit
Added / After Commit
+ <?php + + // app/Models/Wksp.php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + + class Wksp extends Model + { + use HasFactory; + + protected $fillable = ['name']; + } +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class WorkEquipment extends Model + { + use HasFactory, SoftDeletes; + + protected $fillable = [ + 'work_order_id', // ✅ Make sure it's fillable + 'unit_wo_no', + 'unit_wo_date', + 'repair_class', + 'group_id',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + + class WorkOrder extends Model + { + use HasFactory, SoftDeletes; + + protected $fillable = ['work_unit_id', 'work_user_id', 'control_no','control_date','job_no','job_date','job_head','job_printed_at']; // Removed work_equipt_id + + public function workUnit() + { + return $this->belongsTo(WorkUnit::class, 'work_unit_id'); + }
Removed / Before Commit
Added / After Commit
+ <?php + + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + use App\Models\WorkOrder; + + class WorkUnit extends Model + { + use HasFactory, SoftDeletes; + + protected $fillable = ['unit', 'workspace', 'bde', 'division', 'corp', 'command', 'pincode', 'co']; + + public function workOrder() + {
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <?php + + + namespace App\Models; + + use Illuminate\Database\Eloquent\Factories\HasFactory; + use Illuminate\Database\Eloquent\Model; + use Illuminate\Database\Eloquent\SoftDeletes; + use App\Models\WorkOrder; + + class WorkUser extends Model + { + use HasFactory, SoftDeletes; + + protected $fillable = [ + 'army_no', + 'rank', + 'name',
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Providers; + + use Illuminate\Support\ServiceProvider; + use Illuminate\Support\Facades\View; + use Illuminate\Support\Facades\Auth; + use App\Models\Menu; + use Illuminate\Support\Facades\DB; + + class AppServiceProvider extends ServiceProvider + { + /** + * Register any application services. + */ + public function register(): void + { + //
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Providers; + + // use Illuminate\Support\Facades\Gate; + use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; + + class AuthServiceProvider extends ServiceProvider + { + /** + * The model to policy mappings for the application. + * + * @var array<class-string, class-string> + */ + protected $policies = [ + // + ]; +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Providers; + + use Illuminate\Support\Facades\Broadcast; + use Illuminate\Support\ServiceProvider; + + class BroadcastServiceProvider extends ServiceProvider + { + /** + * Bootstrap any application services. + */ + public function boot(): void + { + Broadcast::routes(); + + require base_path('routes/channels.php'); + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Providers; + + use Illuminate\Auth\Events\Registered; + use Illuminate\Auth\Listeners\SendEmailVerificationNotification; + use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; + use Illuminate\Support\Facades\Event; + + class EventServiceProvider extends ServiceProvider + { + /** + * The event to listener mappings for the application. + * + * @var array<class-string, array<int, class-string>> + */ + protected $listen = [ + Registered::class => [
Removed / Before Commit
Added / After Commit
+ <?php + + namespace App\Providers; + + use Illuminate\Cache\RateLimiting\Limit; + use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; + use Illuminate\Http\Request; + use Illuminate\Support\Facades\RateLimiter; + use Illuminate\Support\Facades\Route; + + class RouteServiceProvider extends ServiceProvider + { + /** + * The path to your application's "home" route. + * + * Typically, users are redirected here after authentication. + * + * @var string
Removed / Before Commit
Added / After Commit
+ #!/usr/bin/env php + <?php + + define('LARAVEL_START', microtime(true)); + + /* + |-------------------------------------------------------------------------- + | Register The Auto Loader + |-------------------------------------------------------------------------- + | + | Composer provides a convenient, automatically generated class loader + | for our application. We just need to utilize it! We'll require it + | into the script here so that we do not have to worry about the + | loading of any of our classes manually. It's great to relax. + | + */ + + require __DIR__.'/vendor/autoload.php';
Removed / Before Commit
Added / After Commit
+ <?php + + /* + |-------------------------------------------------------------------------- + | Create The Application + |-------------------------------------------------------------------------- + | + | The first thing we will do is create a new Laravel application instance + | which serves as the "glue" for all the components of Laravel, and is + | the IoC container for the system binding all of the various parts. + | + */ + + $app = new Illuminate\Foundation\Application( + $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) + ); + + /*
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ { + "name": "laravel/laravel", + "type": "project", + "description": "The skeleton application for the Laravel framework.", + "keywords": ["laravel", "framework"], + "license": "MIT", + "require": { + "php": "^8.1", + "guzzlehttp/guzzle": "^7.2", + "laravel/framework": "^10.10", + "laravel/sanctum": "^3.3", + "laravel/tinker": "^2.8" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/pint": "^1.0", + "laravel/sail": "^1.18", + "mockery/mockery": "^1.4.4",
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Facades\Facade; + use Illuminate\Support\ServiceProvider; + + return [ + + /* + |-------------------------------------------------------------------------- + | Application Name + |-------------------------------------------------------------------------- + | + | This value is the name of your application. This value is used when the + | framework needs to place the application's name in a notification or + | any other location as required by the application or its packages. + | + */ +
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Authentication Defaults + |-------------------------------------------------------------------------- + | + | This option controls the default authentication "guard" and password + | reset options for your application. You may change these defaults + | as required, but they're a perfect start for most applications. + | + */ + + 'defaults' => [ + 'guard' => 'web', + 'passwords' => 'users',
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Broadcaster + |-------------------------------------------------------------------------- + | + | This option controls the default broadcaster that will be used by the + | framework when an event needs to be broadcast. You may set this to + | any of the connections defined in the "connections" array below. + | + | Supported: "pusher", "ably", "redis", "log", "null" + | + */ + + 'default' => env('BROADCAST_DRIVER', 'null'),
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Str; + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Cache Store + |-------------------------------------------------------------------------- + | + | This option controls the default cache connection that gets used while + | using this caching library. This connection is used when another is + | not explicitly specified when executing a given caching function. + | + */ + + 'default' => env('CACHE_DRIVER', 'file'),
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Cross-Origin Resource Sharing (CORS) Configuration + |-------------------------------------------------------------------------- + | + | Here you may configure your settings for cross-origin resource sharing + | or "CORS". This determines what cross-origin operations may execute + | in web browsers. You are free to adjust these settings as needed. + | + | To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS + | + */ + + 'paths' => ['api/*', 'sanctum/csrf-cookie'],
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Str; + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Database Connection Name + |-------------------------------------------------------------------------- + | + | Here you may specify which of the database connections below you wish + | to use as your default connection for all database work. Of course + | you may use many connections at once using the Database library. + | + */ + + 'default' => env('DB_CONNECTION', 'mysql'),
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Filesystem Disk + |-------------------------------------------------------------------------- + | + | Here you may specify the default filesystem disk that should be used + | by the framework. The "local" disk, as well as a variety of cloud + | based disks are available to your application. Just store away! + | + */ + + 'default' => env('FILESYSTEM_DISK', 'local'), + + /*
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Hash Driver + |-------------------------------------------------------------------------- + | + | This option controls the default hash driver that will be used to hash + | passwords for your application. By default, the bcrypt algorithm is + | used; however, you remain free to modify this option if you wish. + | + | Supported: "bcrypt", "argon", "argon2id" + | + */ + + 'driver' => 'bcrypt',
Removed / Before Commit
Added / After Commit
+ <?php + + use Monolog\Handler\NullHandler; + use Monolog\Handler\StreamHandler; + use Monolog\Handler\SyslogUdpHandler; + use Monolog\Processor\PsrLogMessageProcessor; + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Log Channel + |-------------------------------------------------------------------------- + | + | This option defines the default log channel that gets used when writing + | messages to the logs. The name specified in this option should match + | one of the channels defined in the "channels" configuration array. + |
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Mailer + |-------------------------------------------------------------------------- + | + | This option controls the default mailer that is used to send any email + | messages sent by your application. Alternative mailers may be setup + | and used as needed; however, this mailer will be used by default. + | + */ + + 'default' => env('MAIL_MAILER', 'smtp'), + + /*
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + 'models' => [ + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * Eloquent model should be used to retrieve your permissions. Of course, it + * is often just the "Permission" model but you may use whatever you like. + * + * The model you want to use as a Permission model needs to implement the + * `Spatie\Permission\Contracts\Permission` contract. + */ + + 'permission' => Spatie\Permission\Models\Permission::class, + + /*
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Queue Connection Name + |-------------------------------------------------------------------------- + | + | Laravel's queue API supports an assortment of back-ends via a single + | API, giving you convenient access to each back-end using the same + | syntax for every one. Here you may define a default connection. + | + */ + + 'default' => env('QUEUE_CONNECTION', 'sync'), + + /*
Removed / Before Commit
Added / After Commit
+ <?php + + use Laravel\Sanctum\Sanctum; + + return [ + + /* + |-------------------------------------------------------------------------- + | Stateful Domains + |-------------------------------------------------------------------------- + | + | Requests from the following domains / hosts will receive stateful API + | authentication cookies. Typically, these should include your local + | and production domains which access your API via a frontend SPA. + | + */ + + 'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | Third Party Services + |-------------------------------------------------------------------------- + | + | This file is for storing the credentials for third party services such + | as Mailgun, Postmark, AWS and more. This file provides the de facto + | location for this type of information, allowing packages to have + | a conventional file to locate the various service credentials. + | + */ + + 'mailgun' => [ + 'domain' => env('MAILGUN_DOMAIN'),
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Str; + + return [ + + /* + |-------------------------------------------------------------------------- + | Default Session Driver + |-------------------------------------------------------------------------- + | + | This option controls the default session "driver" that will be used on + | requests. By default, we will use the lightweight native driver but + | you may specify any of the other wonderful drivers provided here. + | + | Supported: "file", "cookie", "database", "apc", + | "memcached", "redis", "dynamodb", "array" + |
Removed / Before Commit
Added / After Commit
+ <?php + + return [ + + /* + |-------------------------------------------------------------------------- + | View Storage Paths + |-------------------------------------------------------------------------- + | + | Most templating systems load templates from disk. Here you may specify + | an array of paths that should be checked for your views. Of course + | the usual Laravel view path has already been registered for you. + | + */ + + 'paths' => [ + resource_path('views'), + ],
Removed / Before Commit
Added / After Commit
+ *.sqlite*
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Database\Factories; + + use Illuminate\Database\Eloquent\Factories\Factory; + use Illuminate\Support\Facades\Hash; + use Illuminate\Support\Str; + + /** + * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User> + */ + class UserFactory extends Factory + { + /** + * The current password being used by the factory. + */ + protected static ?string $password; +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('users', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('password_reset_tokens', function (Blueprint $table) { + $table->string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('failed_jobs', function (Blueprint $table) { + $table->id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('personal_access_tokens', function (Blueprint $table) { + $table->id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + $teams = config('permission.teams'); + $tableNames = config('permission.table_names'); + $columnNames = config('permission.column_names'); + $pivotRole = $columnNames['role_pivot_key'] ?? 'role_id'; + $pivotPermission = $columnNames['permission_pivot_key'] ?? 'permission_id';
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('menus', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('icon')->nullable(); + $table->string('route')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::table('menus', function (Blueprint $table) { + $table->unsignedBigInteger('parent_id')->nullable()->after('route'); + $table->foreign('parent_id')->references('id')->on('menus')->onDelete('cascade'); + }); + }
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('menu_role', function (Blueprint $table) { + $table->unsignedBigInteger('menu_id'); + $table->unsignedBigInteger('role_id'); + + $table->foreign('menu_id')->references('id')->on('menus')->onDelete('cascade');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('role_menu_permissions', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('role_id'); + $table->unsignedBigInteger('menu_id'); + $table->string('permission'); // like view, create, modify, delete
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('users', function (Blueprint $table) { + $table->string('telephone')->nullable(); + $table->string('role')->nullable(); + $table->string('password')->nullable()->change(); // make password nullable + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('role_parents', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('role_id'); // child + $table->unsignedBigInteger('parent_id'); // parent +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class AddOnlyViewToMenusTable extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('menus', function (Blueprint $table) { + $table->boolean('only_view')->default(false)->after('parent_id'); // replace 'some_existing_column' with the actual column you want this to follow + }); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('production_years', function (Blueprint $table) { + $table->id(); + $table->string('financial_year')->unique(); + $table->boolean('is_active')->default(false); + $table->timestamps();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateGroupsTable extends Migration + { + public function up() + { + Schema::create('groups', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->boolean('status')->default(true); // true = active, false = inactive + $table->timestamps(); + }); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('verticals', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->boolean('status')->default(true); + $table->timestamps();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('master_commands', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->boolean('status')->default(true); + $table->timestamps();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('groups', function (Blueprint $table) { + $table->foreignId('vertical_id')->nullable()->constrained('verticals')->onDelete('set null'); + }); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up(): void { + Schema::create('sub_groups', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->foreignId('group_id')->constrained('groups')->onDelete('cascade'); + $table->boolean('status')->default(true); + $table->timestamps(); + }); + } + + public function down(): void {
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class MakeGroupIdNullableInSubGroupsTable extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::table('sub_groups', function (Blueprint $table) { + $table->unsignedBigInteger('group_id')->nullable()->change(); + }); + } +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('master_logos', function (Blueprint $table) { + $table->id(); + $table->string('title'); + $table->string('logo_path')->nullable(); + $table->string('favicon_path')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_units_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateUnitsTable extends Migration + { + public function up() + { + Schema::create('units', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + }); + }
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_wksps_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up(): void { + Schema::create('wksps', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + }); + } + + public function down(): void {
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_bdes_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up(): void { + Schema::create('bdes', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + }); + } + + public function down(): void {
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_divs_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up(): void { + Schema::create('divs', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + }); + } + + public function down(): void {
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_corps_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up(): void { + Schema::create('corps', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + }); + } + + public function down(): void {
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('cos', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->timestamps(); + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + + public function up(): void + { + Schema::create('work_orders', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('work_unit_id')->nullable(); + $table->unsignedBigInteger('work_user_id')->nullable(); + $table->unsignedBigInteger('work_equipt_id')->nullable(); + $table->string('control_no')->nullable(); + $table->timestamps();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + // public function up(): void + // { + // Schema::create('work_units', function (Blueprint $table) { + // $table->id(); + // $table->timestamps(); + // }); + // }
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('work_users', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('work_order_id'); + $table->string('army_no'); + $table->string('rank')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + + return new class extends Migration + { + public function up() + { + Schema::create('work_equipment', function (Blueprint $table) { + $table->id(); + $table->foreignId('work_order_id')->constrained()->onDelete('cascade'); + $table->string('unit_wo_no')->nullable(); + $table->date('unit_wo_date')->nullable(); + $table->string('repair_class')->nullable(); + $table->foreignId('group_id')->constrained()->onDelete('cascade'); + $table->string('main_eqpt')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateRepairClassesTable extends Migration + { + public function up() + { + Schema::create('repair_classes', function (Blueprint $table) { + $table->id(); + $table->string('name'); // name of repair class + $table->timestamps(); + }); + } + + public function down()
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('equipments', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('code'); + $table->foreignId('subgroup_id');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration { + public function up() + { + Schema::table('work_equipment', function (Blueprint $table) { + // Rename column + $table->renameColumn('assy_nomenclature', 'assy'); + + // Add missing columns + $table->string('eqpt2')->nullable()->after('eqpt'); + $table->string('regd_no1')->nullable()->after('eqpt2'); + $table->string('regd_no2')->nullable()->after('regd_no1'); +
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('virs', function (Blueprint $table) { + $table->id(); + $table->foreignId('work_order_id')->constrained()->onDelete('cascade'); + $table->string('vir_remarks')->nullable(); + $table->string('rejection_reason')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('sub_assy_equipments', function (Blueprint $table) { + $table->id(); + $table->foreignId('equipment_id')->constrained('equipments')->onDelete('cascade'); + $table->string('sub_equipment_name'); + $table->integer('time_allot');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('virs', function (Blueprint $table) { + $table->json('accessories')->nullable()->after('status'); + }); + + }
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('virs', function (Blueprint $table) { + $table->string('vir_file')->nullable(); + + }); + }
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::table('virs', function (Blueprint $table) { + $table->string('job_number')->nullable(); + $table->string('job_head')->nullable(); + $table->date('job_date')->nullable(); + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + public function up() + { + Schema::table('work_equipment', function (Blueprint $table) { + // If not already present + if (!Schema::hasColumn('work_equipment', 'work_order_id')) { + $table->foreignId('work_order_id')->nullable()->constrained()->onDelete('cascade'); + } + + // Rename assy_nomenclature to assy if required + if (Schema::hasColumn('work_equipment', 'assy_nomenclature') && !Schema::hasColumn('work_equipment', 'assy')) {
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::table('virs', function (Blueprint $table) { + $table->unsignedBigInteger('work_equipment_id')->nullable()->after('work_order_id'); + + $table->foreign('work_equipment_id')->references('id')->on('work_equipment')->onDelete('cascade'); + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::create('qa_decisions', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('work_order_id'); + $table->unsignedBigInteger('work_equipment_id'); + $table->unsignedBigInteger('vir_id');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('qc_checks', function (Blueprint $table) { + $table->id(); + $table->string('qc_control_no')->unique(); + $table->unsignedBigInteger('work_order_id'); + $table->unsignedBigInteger('work_equipment_id');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('equipment_repairs', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('work_order_id'); + $table->unsignedBigInteger('work_equipment_id'); + $table->unsignedBigInteger('vir_id');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('qa_inspections', function (Blueprint $table) { + $table->id(); + $table->foreignId('work_order_id')->constrained()->onDelete('cascade'); + $table->foreignId('work_equipment_id'); + $table->foreignId('vir_id')->constrained('virs')->onDelete('cascade');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateQcInspectionsTable extends Migration + { + public function up() + { + Schema::create('qc_inspections', function (Blueprint $table) { + $table->id(); + $table->foreignId('work_order_id')->constrained()->onDelete('cascade'); + $table->foreignId('work_equipment_id'); + $table->foreignId('vir_id')->constrained('virs')->onDelete('cascade'); + $table->enum('status', ['Passed', 'Failed']); + $table->date('qc_date'); + $table->text('qc_remark')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up() + { + Schema::table('work_users', function (Blueprint $table) { + $table->string('unit')->nullable(); + $table->string('oc_wksp_phone_no')->nullable(); + $table->string('self_phone_no')->nullable(); + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + + Schema::create('crcs', function (Blueprint $table) { + $table->id(); + $table->string('unit_iv_no'); + $table->date('iv_date');
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + return new class extends Migration + { + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('crc_items', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('crc_id'); + $table->string('part_no'); + $table->unsignedBigInteger('equipment_id')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_crc_iv_masters_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateCrcIvMastersTable extends Migration + { + public function up() + { + Schema::create('crc_iv_masters', function (Blueprint $table) { + $table->id(); + $table->foreignId('crc_id')->constrained('crcs')->onDelete('cascade'); + $table->string('iv_no')->unique(); + $table->timestamps(); + });
Removed / Before Commit
Added / After Commit
+ <?php + + // database/migrations/xxxx_xx_xx_create_crc_iv_items_table.php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateCrcIvItemsTable extends Migration + { + public function up() + { + Schema::create('crc_iv_items', function (Blueprint $table) { + $table->id(); + $table->foreignId('crc_iv_master_id')->constrained('crc_iv_masters')->onDelete('cascade'); + $table->string('part_no'); + $table->string('equipment'); + $table->string('nomenclature')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Database\Migrations\Migration; + use Illuminate\Database\Schema\Blueprint; + use Illuminate\Support\Facades\Schema; + + class CreateCrcRepairsTable extends Migration + { + public function up() + { + Schema::create('crc_repairs', function (Blueprint $table) { + $table->id(); + $table->foreignId('crc_iv_master_id')->constrained('crc_iv_masters')->onDelete('cascade'); + $table->string('part_no'); + $table->string('equipment_name'); + $table->string('nomenclature')->nullable(); + $table->integer('hours')->nullable(); + $table->string('serial_no')->nullable();
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Database\Seeders; + + // use Illuminate\Database\Console\Seeds\WithoutModelEvents; + use Illuminate\Database\Seeder; + + class DatabaseSeeder extends Seeder + { + /** + * Seed the application's database. + */ + public function run(): void + { + // \App\Models\User::factory(10)->create(); + + // \App\Models\User::factory()->create([ + // 'name' => 'Test User',
Removed / Before Commit
Added / After Commit
+ { + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.6.4", + "laravel-vite-plugin": "^1.0.0", + "vite": "^5.0.0" + } + }
Removed / Before Commit
Added / After Commit
+ <?xml version="1.0" encoding="UTF-8"?> + <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" + bootstrap="vendor/autoload.php" + colors="true" + > + <testsuites> + <testsuite name="Unit"> + <directory>tests/Unit</directory> + </testsuite> + <testsuite name="Feature"> + <directory>tests/Feature</directory> + </testsuite> + </testsuites> + <source> + <include> + <directory>app</directory> + </include>
Removed / Before Commit
Added / After Commit
+ <p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p> + + <p align="center"> + <a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a> + <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a> + <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a> + <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a> + </p> + + ## About Laravel + + Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + + - [Simple, fast routing engine](https://laravel.com/docs/routing). + - [Powerful dependency injection container](https://laravel.com/docs/container). + - Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. + - Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). + - Database agnostic [schema migrations](https://laravel.com/docs/migrations).
Removed / Before Commit
Added / After Commit
+ import './bootstrap';
Removed / Before Commit
Added / After Commit
+ /** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + + import axios from 'axios'; + window.axios = axios; + + window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + + /** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + + // import Echo from 'laravel-echo';
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <style> + body { + background-color: #f8f9fa; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + color: #343a40; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + } + .container { + text-align: center; + max-width: 400px; + padding: 2rem;
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <!doctype html> + <html lang="en" data-bs-theme="light"> + + <head> + + @include('auth.layouts.meta') + @include('auth.layouts.css') + </head> + + <body> + <div class="wrapper"> + @yield('content') + @include('layouts.js') + @yield('scripts') + </div> + </body> + </html> + \ No newline at end of file
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <link href="{{url('assets/plugins/simplebar/css/simplebar.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/metismenu/css/metisMenu.min.css')}}" rel="stylesheet"> + <!-- loader--> + <!-- <link href="{{url('assets/css/pace.min.css')}}" rel="stylesheet"> + <script src="assets/js/pace.min.js"></script> --> + <!-- Bootstrap CSS --> + <link href="{{url('assets/css/bootstrap.min.css')}}" rel="stylesheet"> + <link href="{{url('assets/css/bootstrap-extended.css')}}" rel="stylesheet"> + <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet"> + <link href="{{url('assets/sass/app.css')}}" rel="stylesheet"> + <link rel="stylesheet" href="{{url('assets/sass/dark-theme.css')}}"> + <link href="{{url('assets/css/icons.css')}}" rel="stylesheet"> + \ No newline at end of file
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <script src="{{url('assets/js/bootstrap.bundle.min.js')}}"></script> + <!--plugins--> + <script src="{{url('assets/js/jquery.min.js')}}"></script> + <script src="{{url('assets/plugins/simplebar/js/simplebar.min.js')}}"></script> + <script src="{{url('assets/plugins/metismenu/js/metisMenu.min.js')}}"></script> + <script src="{{url('assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js')}}"></script> + <!--Password show & hide js --> + <!-- <script> + $(document).ready(function () { + $("#show_hide_password a").on('click', function (event) { + event.preventDefault(); + if ($('#show_hide_password input').attr("type") == "text") { + $('#show_hide_password input').attr('type', 'password'); + $('#show_hide_password i').addClass("bx-hide"); + $('#show_hide_password i').removeClass("bx-show"); + } else if ($('#show_hide_password input').attr("type") == "password") { + $('#show_hide_password input').attr('type', 'text'); + $('#show_hide_password i').removeClass("bx-hide");
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <!--favicon--> + <link rel="icon" href="{{url('assets/images/509logo.png')}}" type="image/png"> + \ No newline at end of file
Removed / Before Commit
Added / After Commit
+ @extends('auth.layouts.app') + + @section('content') + <div class="section-authentication-cover"> + <div class=""> + <div class="row g-0"> + + <div class="col-12 col-xl-7 col-xxl-8 auth-cover-left align-items-center justify-content-center d-none d-xl-flex"> + <div class="card shadow-none bg-transparent shadow-none rounded-0 mb-0"> + <!-- <div> + <img src="{{ asset('assets/images/login.jpeg') }}" class="img-fluid auth-img-cover-login" width="100%" alt=""/> + </div> --> + </div> + </div> + + <div class="col-12 col-xl-5 col-xxl-4 auth-cover-right align-items-center justify-content-center"> + <div class="card rounded-0 m-3 shadow-none bg-transparent mb-0"> + <div class="card-body p-sm-5">
Removed / Before Commit
Added / After Commit
+ @extends('auth.layouts.app') + + @section('content') + <div class="section-authentication-cover"> + <div class=""> + <div class="row g-0"> + + <div class="col-12 col-xl-5 col-xxl-5 auth-cover-left register-cover align-items-center justify-content-center d-none d-xl-flex"> + <div class="card shadow-none bg-transparent shadow-none rounded-0 mb-0"> + <!-- <div> + <img src="{{ asset('assets/images/login.jpeg') }}" class="img-fluid auth-img-cover-login" width="100%" alt=""/> + </div> --> + </div> + </div> + + <div class="col-12 col-xl-7 col-xxl-7 auth-cover-right align-items-center justify-content-center"> + <div class="card rounded-0 m-3 shadow-none bg-transparent mb-0"> + <div class="card-body p-sm-5">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>BDEs</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>BDEs</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#bdeModal">Add BDE</button> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Corps</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#corpModal">Add Corps</button> + </div> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>COs</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>COs</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#coModal">Add CO</button> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">Generate CRC IV</h4> + + @if($error) + <div class="alert alert-danger">{{ $error }}</div> + @endif + + {{-- 🔍 Job No Dropdown Filter --}} + <form method="GET" action="{{ route('crc_iv.generate') }}"> + <div class="row mb-3"> + <div class="col-md-4"> + <label>Filter by Job No</label> + <select name="job_no" class="form-select" onchange="this.form.submit()"> + <option value="">-- Select Job No --</option> + @foreach($availableJobNos as $job)
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">IV Details - {{ $ivMaster->iv_no }}</h4> + + <div class="mb-3"> + <strong>CRC No:</strong> {{ $ivMaster->crc->crc_no }}<br> + <strong>Unit IV No:</strong> {{ $ivMaster->crc->unit_iv_no }}<br> + <strong>IV Date:</strong> {{ \Carbon\Carbon::parse($ivMaster->crc->iv_date)->format('d-m-Y') }}<br> + <strong>Created At:</strong> {{ $ivMaster->created_at->format('d-m-Y H:i') }} + </div> + + <table class="table table-bordered"> + <thead> + <tr> + <th>#</th> + <th>Part No</th>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">CRC Repairs - Pending WCN</h4> + + <form method="GET" action="{{ route('crc_repairs.index') }}" class="row mb-3"> + <div class="col-md-4"> + <select name="job_no" class="form-select" onchange="this.form.submit()"> + <option value="">-- Filter by Job No --</option> + @foreach($pendingJobNos as $job) + <option value="{{ $job }}" {{ $job == $selectedJobNo ? 'selected' : '' }}> + {{ $job }} + </option> + @endforeach + </select> + </div> + </form>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">Create CRC</h4> + <form method="POST" id="crc-main-form" action="{{ route('crc.store') }}"> + @csrf + + {{-- 🔷 Master Details --}} + <div class="row mb-3"> + <div class="col-md-4"> + <label>Unit</label> + @if(isset($selectedUnit)) + <input type="text" class="form-control" value="{{ $selectedUnit->name }}" disabled> + <input type="hidden" name="unit_id" value="{{ $selectedUnit->id }}"> + @else + <select name="unit_id" class="form-select" required> + <option value="">Select Unit</option>
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">CRC Listing</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <a href="{{ route('crc.create') }}" class="btn btn-primary mb-3">Create New CRC</a> + + <table class="table table-bordered"> + <thead> + <tr> + <th>#</th> + <th>Unit</th> + <th>Command</th>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">CRC IV Repair Entry</h4> + + <div class="row mb-4"> + <div class="col-md-4"> + <label>Select Job No</label> + <select class="form-select" id="jobNoDropdown"> + <option value="">-- Select Job No --</option> + @foreach($jobNos as $job) + <option value="{{ $job }}">{{ $job }}</option> + @endforeach + </select> + </div> + <div class="col-md-2 d-flex align-items-end"> + <button class="btn btn-primary" id="searchJob">Search</button>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="mb-4">Create & Assign CRC Job</h4> + + @if(!empty($error)) + <div class="alert alert-danger">{{ $error }}</div> + @endif + + @if(!empty($unit) && !empty($command)) + <div class="row mb-3" id="unitSection"> + <div class="col-md-4"> + <label>Unit</label> + <input type="text" class="form-control" value="{{ $unit->name }}" readonly> + <input type="hidden" id="unit_id" value="{{ $unit->id }}"> + </div> + <div class="col-md-4">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4>CRC Details</h4> + <div class="mb-4"> + <strong>CRC No:</strong> {{ $crc->crc_no }}<br> + <strong>CRC Date:</strong> {{ $crc->crc_date }}<br> + <strong>Unit:</strong> {{ $crc->unit->name ?? '-' }}<br> + <strong>Command:</strong> {{ $crc->command->name ?? '-' }}<br> + <strong>Unit IV No:</strong> {{ $crc->unit_iv_no }}<br> + <strong>IV Date:</strong> {{ $crc->iv_date }} + </div> + + <h5>Parts Included</h5> + <table class="table table-bordered"> + <thead> + <tr>
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-6"> + <h4 class="mb-5 mb-md-0">Good Morning, {{ Auth::user()->name }}!</h4> + </div> + <div class="col-md-7"> + + </div> + </div> + </div> + <div class="card-body" style="padding:0;"> + <div id="chart1"></div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>Divisions</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Divisions</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#divModal">Add Division</button> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <h4 class="mb-3"><b>Equipments</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Equipments</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#equipmentModal">Add Equipment</button> + </div> + </div>
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="card"> + <div class="card-header py-3"> + <h4><b>Generate Gate Pass</b></h4> + </div> + + <div class="card-body"> + <!-- 🔍 Filter Form --> + @if(!isset($recentGatePass)) + <form method="GET" action="{{ route('gatepass.index') }}" class="row g-3 mb-4"> + <div class="col-md-3"> + <label>WCN Number</label> + <select name="wcn_number" class="form-select select2" data-placeholder="Select WCN Number"> + <option value="">-- Select WCN Number --</option> + @foreach($wcnNumbers as $wcn) + <option value="{{ $wcn }}" {{ request('wcn_number') == $wcn ? 'selected' : '' }}>
Removed / Before Commit
Added / After Commit
+ <!DOCTYPE html> + <html> + <head> + <meta charset="UTF-8"> + <title>Gate Out Pass</title> + <style> + @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); + + @media print { + body { + margin: 0; + padding: 0; + } + } + + body { + font-family: "Poppins", sans-serif; + font-size: 14px;
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Groups</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#groupModal">Add Group</button> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ <!doctype html> + <html lang="en" data-bs-theme="light"> + + <head> + + @include('layouts.meta') + @include('layouts.css') + </head> + + <body> + + + <div class="wrapper toggled"> + @include('layouts.sidebar') + @include('layouts.header') + <div class="page-wrapper"> + @foreach (['success', 'error', 'warning', 'info'] as $msg) + @if(session($msg))
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <link href="{{url('assets/plugins/vectormap/jquery-jvectormap-2.0.2.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/simplebar/css/simplebar.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/metismenu/css/metisMenu.min.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/highcharts/css/highcharts.css')}}" rel="stylesheet" /> + <!-- loader--> + <link href="{{url('assets/css/pace.min.css')}}" rel="stylesheet"> + <!-- Bootstrap CSS --> + <link href="{{url('assets/css/bootstrap.min.css')}}" rel="stylesheet"> + <link href="{{url('assets/css/bootstrap-extended.css')}}" rel="stylesheet"> + + <link href="{{url('assets/sass/app.css')}}" rel="stylesheet"> + <link href="{{url('assets/css/boxicons.min.css')}}" rel="stylesheet"> + <link href="{{url('assets/plugins/datatable/css/dataTables.bootstrap5.min.css')}}" rel="stylesheet"> + <title>509 Army Workshop</title> + + + \ No newline at end of file
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <div class="overlay toggle-icon"></div> + <!--end overlay--> + <!--Start Back To Top Button--> <a href="javaScript:;" class="back-to-top"><i class='bx bxs-up-arrow-alt'></i></a> + <!--End Back To Top Button--> + <footer class="page-footer"> + <p class="mb-0">Copyright © 2025 <a herf="#" style="color:blue;">509 Army Workshop</a>. All Rights Reserved.</p> + </footer> + \ No newline at end of file
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <header> + <div class="topbar"> + <nav class="navbar navbar-expand gap-2 align-items-center" id="nav"> + <div class="mobile-toggle-menu d-flex"><i class='bx bx-menu'></i> + </div> + + + <div class="top-menu ms-auto"> + <ul class="navbar-nav align-items-center gap-1"> + + <li class="nav-item dropdown dropdown-laungauge d-none d-sm-flex"> + <a class="nav-link dropdown-toggle dropdown-toggle-nocaret" href="avascript:;" data-bs-toggle="dropdown"><img src="{{url('assets/images/county/08.png')}}" width="22" alt=""> + </a> + + </li> + + + </ul>
Removed / Before Commit
Added / After Commit
+ <script src="{{url('assets/js/bootstrap.bundle.min.js')}}"></script> + <!--plugins--> + <script src="{{url('assets/js/jquery.min.js')}}"></script> + <script src="{{url('assets/plugins/simplebar/js/simplebar.min.js')}}"></script> + <script src="{{url('assets/plugins/metismenu/js/metisMenu.min.js')}}"></script> + <script src="{{url('assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js')}}"></script> + <!-- Vector map JavaScript --> + <script src="{{url('assets/plugins/vectormap/jquery-jvectormap-2.0.2.min.js')}}"></script> + <script src="{{url('assets/plugins/vectormap/jquery-jvectormap-world-mill-en.js')}}"></script> + + <!--app JS--> + <script src="{{url('assets/js/pace.min.js')}}"></script> + + <script src="{{url('assets/js/app.js')}}"></script> + <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> + <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> + <script src="{{url('assets/plugins/datatable/js/jquery.dataTables.min.js')}}"></script> + <script src="{{url('assets/plugins/datatable/js/dataTables.bootstrap5.min.js')}}"></script>
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ <!-- Required meta tags --> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <!--favicon--> + <link rel="icon" href="assets/images/509logo.png" type="image/png"> + \ No newline at end of file
Removed / Before Commit
Added / After Commit
+ <div class="sidebar-wrapper" data-simplebar="true"> + <div class="sidebar-header"> + <div><img src="{{url('assets/images/arm_logo.JPG')}}" class="logo-icon" alt="logo icon"></div> + <div><h4 class="logo-text">509 Army Workshop</h4></div> + <div class="mobile-toggle-icon ms-auto"><i class='bx bx-x'></i></div> + </div> + + <ul class="metismenu" id="menu"> + @include('partials.menu-recursive', ['menus' => $menus]) + </ul> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>Master Command Entry</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-6"> + <h4><b>Master Command Entry</b></h4> + </div> + <div class="col-md-6 text-end"> + <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#commandModal">Add Command</button> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>Master Logo</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Master Logo</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#logoModal"> + {{ $logo ? 'Edit Logo' : 'Add Logo' }}
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-success text-white p-2">Add Row to Table: {{ $table }}</h4> + + <a href="{{ route('mco_user.scales.table.view', $table) }}" class="btn btn-secondary mb-3">Back to Table</a> + + <form method="POST" action="{{ route('mco_user.scales.table.store', $table) }}"> + @csrf + + <div class="row"> + @foreach($columns as $col) + @if(!in_array($col, ['id', 'created_at', 'updated_at'])) + <div class="col-md-4 mb-3"> + <label>{{ ucfirst(str_replace('_', ' ', $col)) }}</label> + <input type="text" name="{{ $col }}" class="form-control" placeholder="Enter {{ $col }}"> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-primary text-white p-2">Create New Scale</h4> + + @if ($errors->any()) + <div class="alert alert-danger"> + <ul class="mb-0"> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + <form method="POST" action="{{ route('mco_user.scales.store') }}"> + @csrf
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <style> + .section-header { background: #0d6efd; color: #fff; padding: 10px; font-weight: bold; } + </style> + + <div class="container"> + <h4 class="bg-warning text-white p-2">Design Table for: {{ $scale->scale_name }}</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <form method="POST" action="{{ route('mco_user.scales.upload', $scale->id) }}"> + @csrf + + <div class="section-header">Scale Info</div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-warning text-white p-2">Edit Table: {{ $table }}</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <form method="POST" action="{{ route('mco_user.scales.table.update', $table) }}" id="edit-table-form"> + @csrf + + <table class="table table-bordered" id="column-table"> + <thead class="table-dark"> + <tr> + <th>#</th> + <th>Column Name</th>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-warning text-white p-2">Edit Scale: {{ $scale->scale_name }}</h4> + + @if ($errors->any()) + <div class="alert alert-danger"> + <ul class="mb-0"> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + <form method="POST" action="{{ route('mco_user.scales.update', $scale->id) }}"> + @csrf
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-primary text-white p-2">Scale Management</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <form method="GET" action="{{ route('mco_user.scales.index') }}" class="mb-3 d-flex"> + <input type="text" name="search" class="form-control me-2" placeholder="Search Scale Name..." value="{{ request('search') }}"> + <button class="btn btn-primary">Search</button> + <a href="{{ route('mco_user.scales.create') }}" class="btn btn-success ms-2">+ Add Scale</a> + </form> + + <table class="table table-bordered"> + <thead class="table-secondary">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-danger text-white p-2">Edit Row in: {{ $scale->scale_name }}</h4> + + <form method="POST" action="{{ route('scales.rows.update', [$scale->id, $row->id]) }}"> + @csrf + + <div class="row"> + @foreach($columns as $col) + @if(!in_array($col, ['id', 'created_at', 'updated_at'])) + <div class="col-md-4 mb-3"> + <label>{{ $col }}</label> + <input name="{{ $col }}" value="{{ $row->$col }}" class="form-control" required /> + </div> + @endif + @endforeach
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-warning text-white p-2">Scale: {{ $scale->scale_name }}</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <a href="{{ route('scales.index') }}" class="btn btn-secondary mb-3">Back to Scale List</a> + + <table class="table table-bordered"> + <thead class="table-dark"> + <tr> + @foreach($columns as $col) + <th>{{ $col }}</th> + @endforeach
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-info text-white p-2">Tables for Scale: {{ $scale->scale_name }}</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <a href="{{ route('mco_user.scales.index') }}" class="btn btn-secondary mb-3">Back to Scales</a> + <a href="{{ route('mco_user.scales.design', $scale->id) }}" class="btn btn-success">+ Add New Table to This Scale</a> + + <table class="table table-bordered"> + <thead class="table-primary"> + <tr> + <th>#</th> + <th>Table Name</th>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="container"> + <h4 class="bg-secondary text-white p-2">View Table Structure: {{ $table }}</h4> + + @if(session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + + <a href="{{ route('mco_user.scales.index') }}" class="btn btn-secondary mb-3">Back to Scales</a> + + <div class="table-responsive"> + <table class="table table-bordered"> + <thead class="table-dark"> + <tr> + <th>#</th> + <th>Column Name</th>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <div class="breadcrumb-title pe-3">Create Menu</div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a> + </li> + <li class="breadcrumb-item active" aria-current="page">Form</li> + </ol> + </nav> + </div> + + </div> + <!--end breadcrumb--> +
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <div class="breadcrumb-title pe-3">Edit Menu</div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="{{ route('menus.index') }}"><i class="bx bx-home-alt"></i></a></li> + <li class="breadcrumb-item active" aria-current="page">Edit Form</li> + </ol> + </nav> + </div> + </div> --> + <!--end breadcrumb--> + + <div class="row"> + <div class="col-lg-12">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <a href="{{ route('menus.create') }}"><div class="breadcrumb-title pe-3">Create Menu</div></a> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a> + </li> + <li class="breadcrumb-item active" aria-current="page">Data Table</li> + </ol> + </nav> + </div> + + </div> --> +
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + @section('content') + + <div class="card"> + <div class="card-header"> + <h4>History - {{ $equipment->main_eqpt }} ({{ $equipment->workOrder->job_no }})</h4> + </div> + <div class="card-body"> + <table class="table table-bordered"> + <thead class="table-secondary"> + <tr> + <th>Total Qty</th> + <th>Added Qty</th> + <th>Remaining</th> + <th>Date</th> + <th>Status / Action</th> {{-- New column --}} + </tr> + </thead>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + @section('content') + + <div class="card"> + <div class="card-header"><h4>M&R Manufacturing</h4></div> + <div class="card-body"> + + <form method="GET" class="row mb-4"> + <div class="col-md-4"> + <label>Filter by Job Number</label> + <select name="job_no" class="form-control" onchange="this.form.submit()"> + <option value="">-- Select --</option> + @foreach($jobNumbers as $job) + <option value="{{ $job }}" {{ request('job_no') == $job ? 'selected' : '' }}>{{ $job }}</option> + @endforeach + </select> + </div> + </form>
Removed / Before Commit
Added / After Commit
+ @foreach($menus as $menu) + <li> + @if($menu->children->isNotEmpty()) + <a href="javascript:;" class="has-arrow"> + <div class="parent-icon"><i class="{{ $menu->icon }}"></i></div> + <div class="menu-title">{{ $menu->name }}</div> + </a> + <ul> + @include('partials.submenu-recursive', ['submenus' => $menu->children]) + </ul> + @else + <a href="{{ $menu->route ? url($menu->route) : 'javascript:;' }}"> + <div class="parent-icon"><i class="{{ $menu->icon }}"></i></div> + <div class="menu-title">{{ $menu->name }}</div> + </a> + @endif + </li> + @endforeach
Removed / Before Commit
Added / After Commit
+ @foreach($submenus as $menu) + <li> + @if($menu->children->isNotEmpty()) + <a href="javascript:;" class="has-arrow"> + <div class="parent-icon"><i class="{{ $menu->icon }}"></i></div> + <div class="menu-title">{{ $menu->name }}</div> + </a> + <ul> + @include('partials.submenu-recursive', ['submenus' => $menu->children]) + </ul> + @else + <a href="{{ $menu->route ? url($menu->route) : 'javascript:;' }}"> + <div class="parent-icon"><i class="{{ $menu->icon }}"></i></div> + <div class="menu-title">{{ $menu->name }}</div> + </a> + @endif + </li> + @endforeach
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <div class="breadcrumb-title pe-3">Choose Role </div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a> + </li> + <!-- <li class="breadcrumb-item active" aria-current="page">Form</li> --> + </ol> + </nav> + </div> + </div> + <div class="row"> + <div class="col-lg-8"> + <h4 class="mb-3"><b>Choose Role</b></h4>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <div class="breadcrumb-title pe-3">Roles</div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a></li> + <li class="breadcrumb-item active" aria-current="page">Data Table</li> + </ol> + </nav> + </div> + </div> --> + + <div class="row"> + <div class="col-lg-12"> + <div class="card">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') @section('content') + <!-- <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + + <div class="breadcrumb-title pe-3">Roles</div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a> + </li> + <li class="breadcrumb-item active" aria-current="page">Data Table</li> + </ol> + </nav> + </div> + </div> --> + + <!--end breadcrumb--> + <div class="row"> + <div class="container mt-4">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-9"> + <h4><b>Production Year</b></h4> + </div> + <div class="col-md-3 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">Add/Update</button> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + @if ($errors->any()) + <div class="alert alert-danger"> + <strong>Whoops!</strong> Please fix the following: + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + + <div class="card">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + @if ($errors->any()) + <div class="alert alert-danger"> + <strong>Whoops!</strong> Please fix the following: + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + + <div class="card"> + <div class="card-header py-3">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + @if ($errors->any()) + <div class="alert alert-danger"> + <strong>Whoops!</strong> Please fix the following: + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + @if (session('success')) + <div class="alert alert-success">{{ session('success') }}</div> + @endif + @if ($errors->any()) + <div class="alert alert-danger"> + <strong>Whoops!</strong> Please fix the following: + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + +
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <h4 class="mb-3"><b>Repair Classes</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Repair Classes</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#repairClassModal">Add Repair Class</button> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="card"> + <div class="card-header py-3"> + <h4><b>Repair Progress History</b></h4> + </div> + + <div class="card-body table-responsive"> + @if($history->isEmpty()) + <p>No repair progress found.</p> + @else + <table class="table table-bordered"> + <thead class="table-primary"> + <tr> + <th>Repair Progress Update Date</th> + <th>Fault</th> + <th>Repair Progress Remark</th>
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + @if ($errors->any()) + <div class="alert alert-danger"> + <strong>Whoops!</strong> Please fix the following: + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + + <div class="card"> + <div class="card-header py-3">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + <div class="row"> + <div class="col-lg-12"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-12"> + <h4><b>Create Role</b></h4> + </div> + </div> + </div> + <hr> + + <div class="card-body p-4">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> + <div class="breadcrumb-title pe-3">Edit Role</div> + <div class="ps-3"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb mb-0 p-0"> + <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a></li> + <li class="breadcrumb-item active" aria-current="page">Form</li> + </ol> + </nav> + </div> + </div> --> + <!--end breadcrumb--> + + <div class="row"> + <div class="col-lg-12">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>List of Created Role</b></h4> + </div> + <div class="col-md-9"> + <form class="float-md-end">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <!-- <h4 class="mb-3"><b>Sub-Assy Equipments</b></h4> + <hr /> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-6"> + <h4><b>Sub-Assy Equipments</b></h4> + </div> + <div class="col-md-6 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#subAssyModal">Add Sub-Assy</button> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>Sub Groups</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Sub Groups</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#subGroupModal">Add SubGroup</button> + </div>
Removed / Before Commit
Added / After Commit
+ <!DOCTYPE html> + <html> + <head> + <meta charset="UTF-8"> + <title>Army Document Print</title> + <style> + @media print { + + .btns { + display: none; + } + } + body { + font-family: "Poppins", sans-serif; + margin: 0; + padding: 0; + } + .btns {
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Units</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#unitModal">Add Unit</button> + </div> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <div class="row"> + <div class="col-lg-12"> + + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-12"> + <h4><b>Edit User</b></h4> + </div> + </div> + </div> + <hr> + + <div class="card-body p-4"> + <form action="{{ route('user.password') }}" method="POST">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>List of Users</b></h4> + </div> + </div> + </div> + <hr> + + <div class="card-body"> + <div class="table-responsive"> + <table id="example" class="table table-striped table-bordered" style="width:100%"> + <thead>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Verticals</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#verticalModal">Add Vertical</button> + </div> + </div> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <style> + .vir-list .card-body p { + margin-bottom: 0.3rem; + } + .select2-container .select2-selection--single{ + height: 34px !important; + } + .vir-list p { + margin-bottom: 5px; + margin-top: 5px; + white-space: pre-wrap; + } + .card-row{ + margin-bottom: 20px; + box-shadow: 0 4px 15px #eeeeeeeb;
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + <style> + .select2-container { + width: 100% !important; + } + .select2-selection { + min-height: 32px; + } + form{ + margin-bottom: 40px; + } + </style> + <style> + .select2-results__option { + padding-left: 10px; + display: flex;
Removed / Before Commit
Added / After Commit
+ {{-- resources/views/wcn/committed_table.blade.php --}} + @if(count($committedData)) + @foreach($committedData as $equipment) + <tr> + <td>{{ $equipment->group?->name }}</td> + <td>{{ $equipment->Equipments?->name ?: $equipment->main_eqpt }}</td> + <td>{{ $equipment->assy }}</td> + <td>{{ $equipment->Equipments?->name ? $equipment->quantity : $equipment->qcInspection?->mr?->quantity }}</td> + <td>{{ $equipment->wcn_number }}</td> + <td>{{ $equipment->wcn_date }}</td> + </tr> + @endforeach + @endif
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + @section('content') + @if ($errors->any()) + <div class="alert alert-danger"> + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + <div class="card"> + <div class="card-header"><h4>GENERATE WCN NUMBER</h4></div> + <div class="card-body"> + + <!-- Job Number Dropdown --> + <div id="generate-section"> + @if(!empty($commiteddata) && count($commiteddata) > 0)
Removed / Before Commit
Added / After Commit
+ <!DOCTYPE html> + <html> + <head> + <meta charset="UTF-8"> + <title>Work Completion Note Voucher</title> + <style> + @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); + body { + font-family: Poppins, sans-serif; + margin: 20px; + font-size: 14px; + } + + .container { + width: 100%; + max-width: 100%; + margin: auto; + }
Removed / Before Commit
Added / After Commit
+ @foreach($committedData as $equipment) + <tr> + <td>{{ $equipment->group?->name }}</td> + <td>{{ $equipment->main_eqpt }}</td> + <td>{{ $equipment->assy }}</td> + <td>{{ $equipment->quantity }}</td> + <td>{{ $equipment->wcn_number }}</td> + <td>{{ $equipment->wcn_date }}</td> + </tr> + @endforeach
Removed / Before Commit
Added / After Commit
+ @extends('auth.layouts.app') + + @section('content') + <div class="section-authentication-cover"> + <div class=""> + <div class="row g-0"> + + <div class="col-12 col-xl-7 col-xxl-8 auth-cover-left align-items-center justify-content-center d-none d-xl-flex"> + <!-- <div class="card shadow-none bg-transparent shadow-none rounded-0 mb-0"> + <div> + <img src="{{ asset('assets/images/login.jpeg') }}" class="img-fluid auth-img-cover-login" width="100%" alt=""/> + </div> + </div> --> + </div> + + <div class="col-12 col-xl-5 col-xxl-4 auth-cover-right align-items-center justify-content-center"> + <div class="card rounded-0 m-3 shadow-none bg-transparent mb-0"> + <div class="card-body p-sm-5">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + <!-- <h4 class="mb-3"><b>Workspaces</b></h4> + <hr/> --> + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>Workspaces</b></h4> + </div> + <div class="col-md-9 text-end"> + <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#wkspModal">Add Workspace</button> + </div>
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + @if ($errors->any()) + <div class="alert alert-danger"> + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + <div class="row"> + <div class="col-lg-12"> + <!-- <h4 class="mb-3"><b>{{ isset($isEdit) ? 'Edit' : 'Create' }} Work Order</b></h4> --> + <div class="card"> + <div class="card-header py-3">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + @if ($errors->any()) + <div class="alert alert-danger"> + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + + <div class="row"> + <div class="col-lg-12"> + <!-- <h4 class="mb-3"><b>{{ $workunit ? 'Edit Work Order' : 'Create Work Order' }}</b></h4> --> + <div class="card"> + <div class="card-header py-3">
Removed / Before Commit
Added / After Commit
+ @extends('layouts.app') + + @section('content') + @if ($errors->any()) + <div class="alert alert-danger"> + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + <div class="row"> + <div class="col-lg-12"> + <!-- <h4 class="mb-3"><b>{{ isset($workUser) ? 'Edit Work User' : 'Create Work User' }}</b></h4> --> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center">
Removed / Before Commit
Added / After Commit
+ {{-- partials/equipment_modal.blade.php --}} + <div class="modal fade" id="eqptModal" tabindex="-1" aria-labelledby="eqptModalLabel" aria-hidden="true"> + <div class="modal-dialog modal-lg"> + <div class="modal-content"> + <div class="modal-header"> + <h5 class="modal-title">Equipment Details</h5> + <span id="showname" class="fw-semibold text-dark small ms-1"></span> + <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> + </div> + <div class="modal-body"> + <div id="equipmentFieldsContainer"> + @if(!empty($equipments)) + @foreach($equipments->groupBy('eqpt') as $assyId => $assyGroup) + <div class="row mb-2"> + <div class="col-md-6"> + <input type="text" class="form-control" value="{{ $assyGroup->first()->assy }}" disabled> + </div> + <div class="col-md-2">
Removed / Before Commit
- \ No newline at end of file
Added / After Commit
+ @extends('layouts.app') + + @section('content') + + + <div class="row"> + <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-3"> + <h4><b>List of Work Order</b></h4> + </div> + <div class="col-md-9 text-end"> + <form class="float-md-end"> + <div class="row row-cols-md-auto g-lg-3"> + <a href="{{ url('work-orders-unit') }}"><button type="button" class="btn btn-primary">Add Work Order</button></a> + </div>
Removed / Before Commit
Added / After Commit
+ <script> + function renderModalRows(data = {}) { + const container = $('#equipmentFieldsContainer'); + container.empty(); + + Object.entries(data).forEach(([assyId, assyData]) => { + const { name, qty, regd_nos = [] } = assyData; + let html = `<div class="mb-3 border p-2"> + <label class="form-label fw-semibold">Sub Assy: ${name}</label> + <input type="hidden" name="assy[]" value="${assyId}"> + <input type="hidden" name="assy_name[${assyId}]" value="${name}"> + <div class="row g-2 align-items-center"> + <div class="col-md-2"> + <label class="form-label">Qty</label> + <input type="number" name="assy_qty[${assyId}]" value="${qty}" class="form-control qty-input" data-assy="${assyId}" min="1"> + </div> + <div class="col-md-10"> + <label class="form-label">Regd No(s)</label>
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Http\Request; + use Illuminate\Support\Facades\Route; + + /* + |-------------------------------------------------------------------------- + | API Routes + |-------------------------------------------------------------------------- + | + | Here is where you can register API routes for your application. These + | routes are loaded by the RouteServiceProvider and all of them will + | be assigned to the "api" middleware group. Make something great! + | + */ + + Route::middleware('auth:sanctum')->get('/user', function (Request $request) { + return $request->user();
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Facades\Broadcast; + + /* + |-------------------------------------------------------------------------- + | Broadcast Channels + |-------------------------------------------------------------------------- + | + | Here you may register all of the event broadcasting channels that your + | application supports. The given channel authorization callbacks are + | used to check if an authenticated user can listen to the channel. + | + */ + + Broadcast::channel('App.Models.User.{id}', function ($user, $id) { + return (int) $user->id === (int) $id; + });
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Foundation\Inspiring; + use Illuminate\Support\Facades\Artisan; + + /* + |-------------------------------------------------------------------------- + | Console Routes + |-------------------------------------------------------------------------- + | + | This file is where you may define all of your Closure based console + | commands. Each Closure is bound to a command instance allowing a + | simple approach to interacting with each command's IO methods. + | + */ + + Artisan::command('inspire', function () { + $this->comment(Inspiring::quote());
Removed / Before Commit
Added / After Commit
+ <?php + + use Illuminate\Support\Facades\Route; + use App\Http\Controllers\RoleController; + use App\Http\Controllers\MenuController; + use App\Http\Controllers\PermissionController; + use App\Http\Controllers\Auth\LoginController; + use App\Http\Controllers\Auth\RegisterController; + use App\Http\Controllers\UserController; + use Illuminate\Support\Facades\Auth; + use App\Http\Controllers\ProductionYearController; + use App\Http\Controllers\GroupController; + use App\Http\Controllers\VerticalController; + use App\Http\Controllers\MasterCommandController; + use App\Http\Controllers\SubGroupController; + use App\Http\Controllers\MasterLogoController; + use App\Http\Controllers\UnitController; + use App\Http\Controllers\WkspController;
Removed / Before Commit
Added / After Commit
+ * + !public/ + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ compiled.php + config.php + down + events.scanned.php + maintenance.php + routes.php + routes.scanned.php + schedule-* + services.json
Removed / Before Commit
Added / After Commit
+ * + !data/ + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ * + !.gitignore
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Tests; + + use Illuminate\Contracts\Console\Kernel; + use Illuminate\Foundation\Application; + + trait CreatesApplication + { + /** + * Creates the application. + */ + public function createApplication(): Application + { + $app = require __DIR__.'/../bootstrap/app.php'; + + $app->make(Kernel::class)->bootstrap(); +
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Tests\Feature; + + // use Illuminate\Foundation\Testing\RefreshDatabase; + use Tests\TestCase; + + class ExampleTest extends TestCase + { + /** + * A basic test example. + */ + public function test_the_application_returns_a_successful_response(): void + { + $response = $this->get('/'); + + $response->assertStatus(200); + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Tests; + + use Illuminate\Foundation\Testing\TestCase as BaseTestCase; + + abstract class TestCase extends BaseTestCase + { + use CreatesApplication; + }
Removed / Before Commit
Added / After Commit
+ <?php + + namespace Tests\Unit; + + use PHPUnit\Framework\TestCase; + + class ExampleTest extends TestCase + { + /** + * A basic test example. + */ + public function test_that_true_is_true(): void + { + $this->assertTrue(true); + } + }
Removed / Before Commit
Added / After Commit
+ import { defineConfig } from 'vite'; + import laravel from 'laravel-vite-plugin'; + + export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], + });