Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/backend/pages/category/income.blade.php |
@extends('backend.ayaan.master')
@section('title') Income Lists @endsection
@section('css')
<style>
.th-white-space th{
white-space: nowrap;
}
</style>
<!-- DataTables -->
<link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
@endsection
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboards @endslot
@slot('title') Income Lists @endslot
@endcomponent
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table th-white-space" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{translate('Member ID')}}</th>
<th>{{translate('Name')}}</th>
<th>{{translate('Comapany Name')}}</th>
<th>{{translate('Contact Number')}}</th>
<th>{{translate('Amount')}}</th>
<th>{{translate('Package')}}</th>
<th>{{translate('Status')}}</th>
<th>{{translate('Action')}}</th>
</tr>
</thead>
<tbody>
@foreach ($incomes as $income)
<tr>
<td class="text-center">{{$loop->iteration}}</td>
<td>
{{$income->id}}
</td>
<td>
{{$income->user? $income->user->name:"User Not Exists"}}
</td>
<td>
@if($income->user)
{{$income->user->company? $income->user->company->name:"Null"}}
@else
Company Not Exists
@endif
</td>
<td>
@if($income->user)
{{$income->user->company? $income->user->company->phone:"Null"}}
@else
Null
@endif
</td>
<td>
Tk. {{ $income->amount }}
</td>
<td>
@if($income->package)
<img style="height: 50px; width:50px; border-radius:50%;" src="{{asset('storage/images/admin/package/'.$income->package->image)}}" alt="">
{{$income->package->name}}
@endif
</td>
<td>
@if($income->status==1)
Active
@else
Disabled
@endif
</td>
<td>
<a class="btn btn-success btn-sm d-block mb-2"
href="{{ route('admin.income.invoice_details',$income->id) }}">
Invoice
</a>
@if($income->payment_status == 'paid')
<a class="btn btn-warning btn-sm d-block" href="{{ route('admin.income.money_receipt',$income->id) }}">
Money Receipt
</a>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
@endsection
@section('script')
<!-- Required datatable js -->
<script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
<script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
<script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
@endsection