private function _save($data)
 {
     $all = $this->_filterDone($data);
     $rx = Systemsetting::find(1);
     if ($rx === NULL) {
         $status = Systemsetting::create($all);
     } else {
         $status = $rx->update($all);
     }
     return $status;
 }
Пример #2
0
 public function show()
 {
     //Artisan::call('db:dump');
     //tt( Receipt::find(2)->user()->get()->toArray() );
     Larasset::start('footer')->js('jquery-cookies', 'bootstrap_editable');
     $modesArr = Mode::listModes();
     //Cartsession::set();
     foreach ($modesArr as $key => $value) {
         @($data['str_modes'] .= ucwords($value) . ':' . $key . ',');
     }
     $this->layout->title = Systemsetting::getx('name') . ' - Home';
     $this->layout->content = View::make('frontpage', $data);
 }
Пример #3
0
 public static function birthdayAlert()
 {
     $from = sqldate('today');
     $to = (int) Systemsetting::getx('dob_alert_day');
     $to = $to >= 1 ? '+' . $to . 'days' : 'today';
     $to = $to;
     $to = sqldate($to);
     //tt($to);
     $Customers_bday = Customer::with('customerlog')->whereBetween('birthday', array($from, $to));
     $data['count'] = $Customers_bday->count();
     $data['customer_dob'] = $Customers_bday->orderBy('birthday', 'asc')->get()->toArray();
     //tt($data['customer_dob']);
     return $data;
 }
Пример #4
0
									<div class="controls">
										<label>
									<?php 
$cus = Systemsetting::getx('show_customerdetails');
?>
											<input type="checkbox" name="show_customerdetails" @if($cus == 1)checked="checked" @endif>
											<span class="lbl"> Customer details </span>
										</label>
									</div>
								</div>

								<div class="span4">
									<div class="controls">
										<label>
									<?php 
$pay = Systemsetting::getx('show_paymentmode');
?>
											<input type="checkbox" name="show_paymentmode" @if($pay == 1)checked="checked" @endif>
											<span class="lbl"> Payment mode </span>
										</label>
									</div>
								</div>-->
							</div>
				</fieldset>
			<div class="row-fluid">
				<div class="span12">
					<div class="span6">
						<fieldset>
							<legend class="header blue smaller">Note comment</legend>
							{{Form::textarea('receipt_note', Systemsetting::getx('receipt_note'), array('id'=>'receipt_note', 'class'=>'span12', 'autocomplete'=>'off', 'rows'=>'3'))}}
Пример #5
0
				<h6 class="bolder change nomargin-top-bottom">
					<span class="" id="receipt_change_word">Change: </span>
					<span class="">{{currency()}}<span id="receipt_change">0:00</span>k</span>
				</h6>
			</div>

			<div id="receipt_footer">
				<?php 
$r_note = Systemsetting::getx('receipt_note');
?>
				<div id="receipt_note_comment" style="font-size:{{Systemsetting::getx('receipt_note_fontsize')}}; text-align:{{Systemsetting::getx('receipt_note_alignment')}}; border-bottom: 1px solid #000;">
					{{$r_note}}
				</div>

				<?php 
$r_footer = Systemsetting::getx('receipt_footer');
?>
				<div id="receipt_note_comment" style="text-align:left">
					<em>{{$r_footer}}</em>
				</div>
			</div>

		</div>
	</div>
</div>



<script>
$(document).ready(function(){
	//Lets get the values for payment details
Пример #6
0
					{{--tt($r)--}}
						@foreach($r as $trs)
							@foreach($trs as $tr)
								{{$tr}}
							@endforeach
						@endforeach
					@endif
					
				</tbody>
			</table>
		</div>

		<div class="amountpaid-table-wrapper">
			<table class="table bolder table-bordered cart-footer">
				<?php 
$vat = Systemsetting::getx('vat');
?>
				@if($vat > 0 )
				<tr class="sub-total">
					<td class="first" width=80%>
						<div>
							Sub total:
						</div>
					</td>
					<td>
						<span class="red">{{currency()}}<span class="subtotalamount">{{format_money(Cartsession::getCurrent('subtotalamount', 0.00))}}</span>k</span>
					</td>
				</tr>

				<tr>
					<td class="first">