示例#1
0
 public function getValorAttribute($value)
 {
     return ModelHelper::realCurrency($value);
 }
 public function getDataFimAttribute($value)
 {
     return ModelHelper::brDate($value);
 }
 public function detail($tipo)
 {
     $tipo = ModelHelper::urlDecode($tipo);
     return view('items', ['items' => PagamentosFis::groupBy('CPF', 'CPFcut')->select(DB::raw('CPF as Nome'), DB::raw('CPFcut as id'), DB::raw('SUM(Valor) as Valor'))->take(1000)->orderBy('Valor', 'desc')->where('TipoDespesa', $tipo)->get(), 'link' => 'pessoa', 'title' => $tipo]);
 }
 public function getTipoDespesaAttribute($value)
 {
     return ModelHelper::removeAccent($value);
 }