/
home
/
sjslayjy
/
public_html
/
assets
/
resources
/
views
/
admin
/
Upload File
HOME
@extends('layout.master') @push('plugin-styles') @endpush @section('content') <div class="row"> @if(Session::has('error')) <div class="alert alert-danger alert-block"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>{{ Session::get('error') }}</strong> </div> @endif <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="row grid-margin"> <div class="col-lg-6"> <h4 class="card-title">All Circle Store List</h4> </div> <div class="col-lg-6 top-tab"></div> <div class="table-responsive"> <table class="table table-striped" id="example"> <thead> <tr> <th> Id </th> <th>Cricle Code</th> <th> Stock</th> <th> Adress</th> <th> GST No</th> </tr> </thead> <tbody> @foreach($warehouses as $warehouse) <tr> <td>{{$warehouse->id}}</td> <td>{{$warehouse->ware_house}}</td> <td><a href="{{url('admin/view-circle-store-stock/'.$warehouse->ware_house)}}">View Stock</a></td> <td>{{$warehouse->address}}</td> <td>{{$warehouse->gst_no}}</td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @endsection @push('plugin-scripts') {!! Html::script('/assets/plugins/chartjs/chart.min.js') !!} {!! Html::script('/assets/plugins/jquery-sparkline/jquery.sparkline.min.js') !!} @endpush @push('custom-scripts') {!! Html::script('/assets/js/dashboard.js') !!} <script type="text/javascript"> function delete_now(id){ swal({ title: "Are you sure?", text: "Once deleted, you will not be able to recover this Spare Part!", icon: "warning", buttons: true, dangerMode: true, }).then((willDelete) => { if (willDelete) { var url = window.location.origin+"/admin/delete-spare-part" var data = {}; data.spare_part_id = id; data._token = "{{ csrf_token() }}"; $.ajax({ type: "POST", url: url, data: data, success:function(res){ swal("Poof! Your Spare Part has been deleted!", { icon: "success", }); $('#sp_'+id).remove(); }, error:function(error){ console.log(error); }, dataType: 'json' }); } }); } </script> @endpush