Yajra Datatables | laravel 10 | Tutorial | Overview

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 11

  • @emersonflavioeuzebio4880
    @emersonflavioeuzebio4880 6 месяцев назад +1

    Excelent tutorial!!! Congratulations!!!

  • @sandesh5765
    @sandesh5765 Год назад +2

    5:27
    not inside of resources/css/app.css
    but inside of resources/sass/app.scss

  • @muhalazhars4800
    @muhalazhars4800 Год назад

    i have 3 rows data, but when i export pdf just 1 rows display?

  • @newagene8276
    @newagene8276 Год назад

    Hello, I am fetching the data from excel file to be shown in laravel blade template, so the excel files are randon and I cannot have static column names in ajax, how to overcome this problem?

    • @sojhodeveloper
      @sojhodeveloper  Год назад

      If you need to retrieve data from Excel files with random column names but cannot use static column names in your AJAX request, you can use a PHP library like PHPExcel to dynamically retrieve the column names from the Excel file.

    • @newagene8276
      @newagene8276 Год назад

      @@sojhodeveloper So, dynamically retrieving it but how will I implement the datatables after?

    • @sojhodeveloper
      @sojhodeveloper  Год назад

      Follow Datatables guide.

  • @roficakep
    @roficakep Год назад

    Hi, how to add action button in last of row, like edit, delete?

    • @sojhodeveloper
      @sojhodeveloper  Год назад

      public function getDataTableData(){
      $employees = Employees::select('*');
      return Datatables::of($employees)
      ->addIndexColumn()
      ->addColumn('status', function($row){
      if($row->status == 1){
      return "Active";
      }else{
      return "Inactive";
      }
      })
      ->addColumn('action', function($row){
      // Update Button
      $updateButton = "";
      // Delete Button
      $deleteButton = "";
      return $updateButton." ".$deleteButton;
      })
      ->make();
      }

    • @husniamrizal1353
      @husniamrizal1353 3 месяца назад

      @@sojhodeveloper public function getDataTableData()
      add this script where?