/
home
/
sjslayjy
/
public_html
/
ccbfsoution
/
Upload File
HOME
@extends('layouts.app') @section('title', 'Machine Management') @section('content') <style> .btn-add { background-color: #6b8e23; color: white; padding: 8px 12px; border-radius: 6px; font-size: 14px; border: none; } .modal-content { border-radius: 12px; padding: 20px; } .form-control { border-radius: 8px; padding: 10px; } table th { background-color: #6b8e23; color: white; } table tbody tr:nth-child(even) { background-color: #f0f4e6; } </style> <!-- Add Button and Search Bar in Same Line --> <div class="d-flex justify-content-between align-items-center mt-4"> <button class="btn-add" data-bs-toggle="modal" data-bs-target="#addMachineModal">Add Machine</button> <div class="input-group shadow-sm rounded-pill w-25 position-relative"> <input type="text" class="form-control border-0 " placeholder="Search..."> <span class="position-absolute end-0 top-50 translate-middle-y pe-3"> <i class="fas fa-search text-secondary"></i> </span> </div> </div> <!-- Machine Table --> <div class="table-responsive mt-3"> <table class="table table-bordered text-center"> <thead> <tr> <th>Sr.No.</th> <th>Machine Name</th> <th>Machine Type</th> <th>Model No.</th> <th>Purchase Date</th> <th>Document</th> <th>Machine Status</th> <th>Service Prev./Upco.</th> <th>Machine Image</th> <th>Action</th> </tr> </thead> <tbody> @for ($i = 1; $i <= 6; $i++) <tr> <td>{{ $i }}</td> <td>Machine {{ $i }}</td> <td>Type {{ $i }}</td> <td>Model {{ $i }}</td> <td>01-01-2025</td> <td><i class="fas fa-file"></i></td> <td>Active</td> <td>02-02-2025</td> <td><i class="fas fa-image"></i></td> <td> <button class="btn btn-sm btn-warning">Edit</button> <button class="btn btn-sm btn-danger">Delete</button> </td> </tr> @endfor </tbody> </table> </div> <div class="modal fade" id="addMachineModal" tabindex="-1" aria-labelledby="addMachineModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Add Machine</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form> <div class="row"> <div class="col-md-6 mb-3"> <label>Machine Name</label> <input type="text" class="form-control" placeholder="Machine Name"> </div> <div class="col-md-6 mb-3"> <label>Machine Type</label> <input type="text" class="form-control" placeholder="Machine Type"> </div> <div class="col-md-6 mb-3"> <label>Brand & Model No.</label> <input type="text" class="form-control" placeholder="Brand & Model No."> </div> <div class="col-md-6 mb-3"> <label>Purchase Date</label> <input type="date" class="form-control"> </div> <div class="col-md-6 mb-3"> <label>Upload Document</label> <input type="file" class="form-control"> </div> <div class="col-md-6 mb-3"> <label>Machine Status</label> <input type="text" class="form-control" placeholder="Status"> </div> <div class="col-md-6 mb-3"> <label>Service (Prev./Upco.)</label> <input type="date" class="form-control"> </div> <div class="col-md-6 mb-3"> <label>Machine Image</label> <input type="file" class="form-control"> </div> </div> <button type="submit" class="btn btn-success w-100">Submit</button> </form> </div> </div> </div> </div> @endsection