@extends('layouts.main')

@section('content')
 

<section class="content-header">
	
	<h1>Credit Note Management</h1>
    
	<ol class="breadcrumb">
        
		<li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        
		<li><a href="#">Credit Note</a></li>
	
	</ol>

</section>

<hr style="border: 3px groove #3c8dbc;">

<section class="content">

	<div class="row">
	
		<div class="col-xs-12">
		
			<div class="box box-info">
			
				<div class="box-header">

					<div class="alert alert-success hide" id="credit_note_success"></div>
                
					<div class="alert alert-danger hide" id="credit_note_danger"></div>
					
					<a class="btn btn-primary" href="{{ route('home') }}"> Back</a>
                
					<a class="btn btn-danger credit_note_trash" href="#"> Go To Trash</a>
					
					
					@can('credit-note-create')
						<a class="btn btn-success pull-right credit_note_createbtn" href="#"> New Credit Note</a>
						<a class="btn btn-info pull-right credit_note_createbtn_without_PI"  data-id="cpq" href="#" style="margin-right:10px"> New Credit Note without Invoice </a>
					@endcan
					@if ($message = Session::get('success'))
				
						<div class="alert alert-success">
							<p>{{ $message }}</p>
						</div>
					
					@endif
				
				</div>
				
				<div class="box-body">
					<table class="dataTables_wrapper table table-responsive" id="credit_note_home">
					
						<thead>
						
							<tr>

								<th class="txt-center"></th>
							
								<th class="txt-center">No</th>
								
								<th class="txt-center">Credit Note No</th>
								
								<th class="txt-center">Invoice NO</th>
								
								<th class="txt-center">Company name</th>

								<th class="txt-center">Created Date</th>
							
							</tr>
						
						</thead>
						
						<tbody>
						
						
						
						</tbody>
				</div>
			
			</div>
		
		</div>
	
	</div>

</section>

@include('credit_note.create')

@endsection

					