コード例 #1
0
 public function getDelete($id)
 {
     $product = AccountCategory::find($id);
     $product->delete();
     Session::flash('message', 'Account Category  has been Successfully Deleted.');
     return Redirect::to('accountcategory/index');
 }
コード例 #2
0
@extends('baseLayout')
@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('assets/plugins/select2/select2_metro.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('assets/plugins/bootstrap-datepicker/css/datepicker.css') }}" />
@stop
@section('content')
    <div class="row">
        <div class="col-md-12">
         <?php 
$account = \App\NameOfAccount::find($account_id);
$accountCat = \App\AccountCategory::find($account->account_category_id);
?>
        <center>
            <h3 class="page-title">
             Accounts Report  for <span style="color: black"> {{$account->name}} ({{$accountCat->name}})</span>
            </h3>
            </center>
         </div>

    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box light-grey">

                <div class="portlet-title">
                    <?php 
$date01 = explode('/', $date1);
$month1 = $date01[0];
$day1 = $date01[1];
$year1 = $date01[2];
$date001 = $day1 . '/' . $month1 . '/' . $year1;
コード例 #3
0
                            <th>Account Name</th>
                            <th>Payment Method</th>
                            <th>Remarks</th>
                            <th style="text-align: right;">Amount</th>

                        </tr>
                        </thead>
                        <tbody>
                        <?php 
$totalSale = 0;
?>

                        @foreach($results as $result )
                            <?php 
$accounts = \App\NameOfAccount::find($result->account_name_id);
$accountCategory = \App\AccountCategory::find($result->account_category_id);
$party = \App\Party::find($result->party);
?>

                            <tr class="odd gradeX">
                                <td>{{\App\Transaction::convertDate($result->date)}}</td>
                                <td>{{$party->name}}</td>
                                <td><a target="_blank" href="{{URL::to('sales?invoice_id='.$result->invoice)}}">{{$result->invoice}}</a></td>
                                <td>{{$accounts->name }}{{' ( '.$accountCategory->name.' )'}}</td>
                                <td>{{$result->payment_method}}
                                    @if($result->cheque_no)
                                        {{' ( '.$result->cheque_no.' )'}}
                                    @endif
                                </td>
                                <td>{{$result->remarks}}</td>
                                <td style="text-align: right;">{{$result->amount}}</td>
コード例 #4
0
ファイル: list.blade.php プロジェクト: woakes070048/cemcoErp
                        <th>SL</th>
                        <th>Branch Name</th>
                        <th>Name</th>
                        <th>Category</th>
                        <th>Balance</th>
                        <th>Created By</th>
                        <th >Action</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$sl = 1;
?>
                    @foreach($accountNames as $accountName)
                        <?php 
$accounts = \App\AccountCategory::find($accountName->account_category_id);
$branch = \App\Branch::find($accountName->branch_id);
?>
                    <tr class="odd gradeX">
                        <td><?php 
echo $sl;
?>
</td>
                        <td>{{$branch->name}}</td>
                        <td>{{$accountName->name}}</td>
                        <td>{{$accounts->name}}</td>
                        <td>{{$accountName->opening_balance}}</td>
                        <td>{{$accountName->user->username}}</td>
                     <td>
                            <a class="btn blue btn-sm editAccountName" data-toggle="modal"  data-target="#ajax2" href="{{URL::to('accountnames/edit',$accountName->id )}}" >
                                <i class="fa fa-edit"></i> Edit Account Name</a>
コード例 #5
0
ファイル: list.blade.php プロジェクト: woakes070048/cemcoErp
                        <th>Amount</th>
                        <th>Remarks</th>
                        <th>Created By</th>
                        <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$sl = 1;
?>
                    @foreach($balanceTransfers as $transfer )
                        <?php 
$branch1 = \App\Branch::find($transfer->from_branch_id);
$branch2 = \App\Branch::find($transfer->to_branch_id);
$category1 = \App\AccountCategory::find($transfer->from_account_category_id);
$category2 = \App\AccountCategory::find($transfer->to_account_category_id);
$account1 = \App\NameOfAccount::find($transfer->from_account_name_id);
$account2 = \App\NameOfAccount::find($transfer->to_account_name_id);
$user = \App\User::find($transfer->user_id);
?>
                    <tr class="odd gradeX">
                        <td><?php 
echo $sl;
?>
</td>
                        <td>{{$branch1->name}}</td>
                        <td>{{$category1->name}}</td>
                        <td>{{$account1->name}}</td>
                        <td>{{$branch2->name}}</td>
                        <td>{{$category2->name}}</td>
                        <td>{{$account2->name}}</td>