PATH:
home
/
centosnipponia
/
public_html
/
ts
/
storage
/
framework
/
views
<?php $__env->startSection('title', 'Technical Case'); ?> <?php $__env->startSection('content'); ?> <?php $__env->startPush('head'); ?> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> <?php $__env->stopPush(); ?> <div class="container-fluid"> <div class="page-header"> <div class="row align-items-end"> <div class="col-lg-8"> <div class="page-header-title"> <i class="ik ik-file-text bg-blue"></i> <div class="d-inline"> <?php if($action=="create"): ?> <h1>New Technical Case</h1> <?php elseif($action=="show"): ?> <h1><?php echo e($case->subject); ?></h1> <?php elseif($action=="edit"): ?> <h1><?php echo e($case->subject); ?></h1> <?php endif; ?> </div> </div> </div> <div class="col-lg-4"> <nav class="breadcrumb-container" aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="/dashboard"><i class="ik ik-home"></i></a> </li> <li class="breadcrumb-item"> <a href="<?php echo e(route('cases.indexpending')); ?>">Technical Cases</a> </li> </ol> </nav> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card "> <div class="card-body"> <?php echo $__env->make('include.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <form class="forms" method="POST" enctype="multipart/form-data" action="<?php echo e(($action=='edit') ? route("cases.update",$case->id) : route("cases.create")); ?>"> <?php echo csrf_field(); ?> <?php if($action=="edit"): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label for="subject">Subject <span class="text-danger">*</span></label> <input id="subject" type="text" class="form-control" name="subject" value="<?php echo e(old('subject')??$case->subject??''); ?>" placeholder="Enter a very short summary of the subject" required> <div class="help-block with-errors"> <?php $__errorArgs = ['subject']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="alert alert-danger"><?php echo e($message); ?></div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group"> <label for="description"><?php echo e(__('Description')); ?> <span class="text-danger">*</span> </label> <textarea name="description" id="description" class="form-control" rows="10" required><?php echo e(old('description')??$case->description??''); ?></textarea> <div class="help-block with-errors"> <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="alert alert-danger"><?php echo e($message); ?></div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group"> <label>Photos/Videos</label> <?php if(isset($photos)): ?> <ul style="list-style-type:circle;" class="mb-3"> <?php $__currentLoopData = $photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $filename = basename($photo); ?> <li data-photo="<?php echo e($filename); ?>"> <a class="link-primary" href="<?php echo e($photos_path.basename($photo)); ?>" target="_blank"><?php echo e(basename($photo)); ?></a> <button type="button" class="badge badge-pill badge-danger border-0" onclick="deleteTheFile('<?php echo e(basename($photo)); ?>')">Delete</button> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> <?php if($action=="edit"): ?> <div class="input-images" data-input-name="photos" data-label="Drag & drop more photos in this area or click here to upload more photos. Don't forget to click "Update Case" afterwards!"></div> <?php else: ?> <div class="input-images" data-input-name="photos" data-label="Drag & drop photos in this area or click here to browse."></div> <?php endif; ?> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label for="model"><?php echo e(__('Model')); ?> <span class="text-danger">*</span> <i class="fa fa-info-circle text-primary" data-toggle="tooltip" aria-hidden="true" title="Use no spaces between the model's name and displacement (For example, BRIO110) "> </i></label> <input id="model" type="text" class="form-control" name="model" value="<?php echo e(old('model')??$case->model??''); ?>" placeholder="" required> </select> </div> <div class="" x-data="{ vins: [] , showvin: vin=>vin[0]+' - '+vin[1]+'km', }"> <div class="form-group" > <label>Vechicle Identities <span class="text-danger">*</span> <i class="fa fa-info-circle text-primary" data-toggle="tooltip" aria-hidden="true" title="Enter VIN & distance travelled in kilometers and press "Add VIN""> </i></label> <div class="input-group"> <input id="newVIN" type="text" min="0" class="form-control" placeholder="Enter VIN here" @keydown.enter.prevent="addVIN.click()"> <input id="newKM" type="number" min="0" step="1" class="form-control" placeholder="Mileage (km)" @keydown.enter.prevent="addVIN.click()" style="max-width:200px"> <button class="btn btn-secondary" type="button" id="addVIN" @click=" if (newVIN.value.length>0) {vins.push([newVIN.value,newKM.value||0])}; newVIN.value='';newKM.value='' "> Add VIN </button> </div> <div class="form-group my-2 bg-light"> <select name="vins[]" id="vins" class="form-control select2" multiple="multiple" size="1" required> <?php $__currentLoopData = $case->vins??[]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(implode(',',$vin->as_array())); ?>" selected ><?php echo e($vin->vin); ?> - <?php echo e($vin->distance); ?>km</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <template x-for="vin in vins"> <option :value="vin.toString()" x-text="showvin(vin)" selected></option> </template> </select> </div> </div> </div> <div class="form-group"> <label for="purchase_order">Purchase Order</label> <input id="purchase_order" type="text" class="form-control" name="purchase_order" value="<?php echo e(old('purchase_order')??$case->purchase_order??''); ?>" placeholder="Enter Purchase Order"> </div> <!-- <div class="form-group"> <div class="border-checkbox-section ml-3"> <div class="border-checkbox-group border-checkbox-group-primary d-block"> <input type="hidden" name="isaclaim" value="0"> <input class="border-checkbox" type="checkbox" id="isaclaim" name="isaclaim" value="1"> <label class="border-checkbox-label" for="isaclaim">Is this a claim request?</label> </div> </div> </div> --> <div id="submitBtn" class="form-group text-right my-5"> <button type="submit" class="btn btn-primary"> <?php if($action=="create"): ?> Submit Case <?php elseif($action=="edit"): ?> Update Case <?php endif; ?> </button> </div> </div> <div class="col-sm-6"> </div> </div> </form> </div> </div> </div> </div> </div> <?php if(isset($case)): ?> <script> function deleteTheFile(filename){ let r = confirm("Are you sure you want to delete this file now?"); if (r == true) { fetch(`/technical_cases/<?php echo e($case->id); ?>/deletefile/${filename}`,{ method:'DELETE', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', "X-CSRF-Token": document.querySelector('input[name=_token]').value }, }).then(response => document.querySelector(`[data-photo="${filename}"]`).remove()); } else { //do nothing } } </script> <?php endif; ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/centosnipponia/public_html/ts/resources/views/support/technical_cases/case.blade.php ENDPATH**/ ?>
[+]
..
[-] .gitignore
[edit]
[-] fdd02708d229f4db19e2423174c339a3fc118642.php
[edit]
[-] e73a93f6aa665a7de2a3a9fc30b3c221519d1fed.php
[edit]
[-] da0f324375006cfcd0a3999f2c2662411833604b.php
[edit]
[-] 1db511d5e02ebb48bff39a3f6992f6b23a94fc0f.php
[edit]
[-] 276a1c26ffaed4772317b1f39b7f9ef8eeb4d2e7.php
[edit]
[-] 4899c932b7b15a1224af38931b59168a1bfaa70a.php
[edit]
[-] 2b0f25f46aba744641b72a78c2b7390daee87b06.php
[edit]
[-] 40e1d60d9ea26d555636acdade614fb87d542b29.php
[edit]
[-] bcee05f7f71551f5f8ac465ed87c5b5e0ca5961b.php
[edit]
[-] d64664bfccf835303a3b3e55d345de8242e271d0.php
[edit]
[-] cce7096c30c5897688d77348d7165eaf790a65a6.php
[edit]
[-] 44f93c44787adb5e05dcaeb7209f04943ceb6d05.php
[edit]
[-] 3fa8451d4c94db0aeed2338d6da37a2b88a4b17f.php
[edit]
[-] 8bd3cda0ec4fb61ca913683414a91cb52b3162fe.php
[edit]
[-] 69a4211a4c1250e9d0497304305618b51dfe4615.php
[edit]
[-] 3d0ff0c3a7fb17b82a54c0335d421b5fade4429e.php
[edit]
[-] 730805c85ac09e46dd8282f0720a4a477a627116.php
[edit]
[-] c7c064123380a8a268c99d7bc327175254242726.php
[edit]
[-] 905adf4b1d0a607972d279a46fd2a27f6f1605dc.php
[edit]
[-] 9eb77ba8cf43fa7e6cb78ce942756a7f1562f918.php
[edit]
[-] 9b2cd1c521f1f39f00aa02b64d9efb2fd22cc1e2.php
[edit]
[-] d6d3471e156359f834e4b772322ad60359fc2e50.php
[edit]
[-] 70f5fd5af592042e094432bd41e6b1c2736ecce9.php
[edit]
[-] 7f8105f24ba6f5826f9738966cadb8219450ad4c.php
[edit]
[-] 50350af9f4d22413d22b48e7b460f600ee6b6eac.php
[edit]
[-] 9f0ae0f8ce5120d705d416ce096c9d547478a498.php
[edit]
[-] 54796878c1794a3464e9eeb13c7701ebf89e83c9.php
[edit]
[-] 6c1bdb14271226a006d6d72e8aa55d2f394d95a9.php
[edit]
[-] a179fb89a71903715a6e670b1e9ed9af6a279ef7.php
[edit]
[-] fa2fab5394de14a419d5b63677816bedddd042be.php
[edit]
[-] 0b1f8f98af835a0a7b05e38381bf83ee1df85c5f.php
[edit]
[-] 1ca1fd8d8903c627bf04bf79996d2d02f0f96979.php
[edit]
[-] 89fcc7f5528c83f365392bb079be2c0ba9e5b9cb.php
[edit]
[-] 539242f89f9f1b6d867280aeb776a28eb48ad7cc.php
[edit]
[-] dd90d74bb1ac66a15566ccff2828a076372c457d.php
[edit]
[-] 8696f061802795378c7a73cc1ffa6288851e84b9.php
[edit]
[-] a98bfba760c59b10b7a5b1b6e5349122e110fcbe.php
[edit]
[-] bafee4e3310a9885b2bd8ae9f4e4c8b62785746f.php
[edit]
[-] 1d0363d971d65569c52f94dfb2177092ec0ce8a5.php
[edit]
[-] 91498dd271e5dce32df4ebe9f011b6357aab36ad.php
[edit]
[-] 865621633ee89a6711a5b761f3eb72aa944231f9.php
[edit]
[-] 56f48baaff5495c7c112c88184397678220c5f91.php
[edit]
[-] 530da188594faf816d183b2cf9714f9fc01c7895.php
[edit]
[-] 5d87950e0f0873755fdc2872863d00161139ebc3.php
[edit]
[-] 7d7970493e6ab8cc229289058743ee1e083a90db.php
[edit]
[-] ce38c81df615627ec5b27ccd71dd743f989fd85e.php
[edit]
[-] 0b6908f46c4dd83e28e91c3a13803b09ae7309ff.php
[edit]
[-] c2185648c7ab88e1a6943bf5f294dcb65f00867c.php
[edit]
[-] d6348442f9b157486fec163677516b138e2765f3.php
[edit]
[-] 2d0fc70eea61583d3e6ebd13e5ae561142314441.php
[edit]
[-] 91ef55fded6ea18a3c936fabf87f475b1386b0e9.php
[edit]
[-] cb80b10ae3ecf314dc7a8f9f1528a820474abca9.php
[edit]
[-] 768e5c774050a823dd862ccff4054029f447aeaf.php
[edit]
[-] 08820601a8d76470a9509f8d1246ac39dcfb5744.php
[edit]
[-] 5a7f0b38d6d47b4d43e28b2938442c8b3607f436.php
[edit]
[-] fe5e0563e89d94b8a30d37e743794d0cab61fee5.php
[edit]
[-] e30dd9aaffd771bb1529d623321e87b18f2cfc59.php
[edit]
[-] 07018ab220824d23bc4b76dec8f98d16ff366cd8.php
[edit]
[-] 0221622ebc317fca20c207e0cf994d27b070df9b.php
[edit]
[-] f4f77464f13a8ca62b5b5a96857e41b01acf277b.php
[edit]
[-] b94d25cb663a9e45c4f6ca37de434b3ad2e6f596.php
[edit]
[-] e81f4b363d6fe598a2125bac734247a0f318487d.php
[edit]
[-] 8134fa768c9c676b3d746b20452145919b17614d.php
[edit]
[-] 1ee05c46c41c75adb055f5ecabd0378a8a9d82d7.php
[edit]
[-] acd72f89416bfb46dcdc91745877043e39cf6151.php
[edit]
[-] c5f2010e1c87205621c960d1150978c260a8f328.php
[edit]
[-] 769f699fb5b47ae49c2be6d5bae3d4b7b8c48be3.php
[edit]
[-] .htaccess.disabled
[edit]